Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
f08baea3
Commit
f08baea3
authored
Nov 08, 1999
by
Andrew Tridgell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed ACCESSPERMS mask when transferring a file without perms
copy. This makes us match GNU cp more closely.
parent
2fb139c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
rsync.c
rsync.c
+1
-6
No files found.
rsync.c
View file @
f08baea3
...
@@ -200,14 +200,9 @@ int set_perms(char *fname,struct file_struct *file,STRUCT_STAT *st,
...
@@ -200,14 +200,9 @@ int set_perms(char *fname,struct file_struct *file,STRUCT_STAT *st,
#ifdef HAVE_CHMOD
#ifdef HAVE_CHMOD
if
(
!
S_ISLNK
(
st
->
st_mode
))
{
if
(
!
S_ISLNK
(
st
->
st_mode
))
{
int
file_mode
;
if
(
preserve_perms
)
file_mode
=
file
->
mode
;
else
file_mode
=
file
->
mode
&
ACCESSPERMS
;
if
(
st
->
st_mode
!=
file
->
mode
)
{
if
(
st
->
st_mode
!=
file
->
mode
)
{
updated
=
1
;
updated
=
1
;
if
(
do_chmod
(
fname
,
file
_
mode
)
!=
0
)
{
if
(
do_chmod
(
fname
,
file
->
mode
)
!=
0
)
{
rprintf
(
FERROR
,
"failed to set permissions on %s : %s
\n
"
,
rprintf
(
FERROR
,
"failed to set permissions on %s : %s
\n
"
,
fname
,
strerror
(
errno
));
fname
,
strerror
(
errno
));
return
0
;
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment