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
5ca8a90c
Commit
5ca8a90c
authored
Feb 08, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaked the name of one of dest_mode()'s args.
parent
0679ac4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
rsync.c
rsync.c
+6
-6
No files found.
rsync.c
View file @
5ca8a90c
...
...
@@ -100,7 +100,7 @@ void free_sums(struct sum_struct *s)
/* This is only called when we aren't preserving permissions. Figure out what
* the permissions should be and return them merged back into the mode. */
mode_t
dest_mode
(
mode_t
flist_mode
,
mode_t
dest
_mode
,
int
exists
)
mode_t
dest_mode
(
mode_t
flist_mode
,
mode_t
cur
_mode
,
int
exists
)
{
/* If the file already exists, we'll return the local permissions,
* possibly tweaked by the --executability option. */
...
...
@@ -110,13 +110,13 @@ mode_t dest_mode(mode_t flist_mode, mode_t dest_mode, int exists)
* rights to everyone who can read, but ONLY if the
* file isn't already executable. */
if
(
!
(
flist_mode
&
0111
))
dest
_mode
&=
~
0111
;
else
if
(
!
(
dest
_mode
&
0111
))
dest_mode
|=
(
dest
_mode
&
0444
)
>>
2
;
cur
_mode
&=
~
0111
;
else
if
(
!
(
cur
_mode
&
0111
))
cur_mode
|=
(
cur
_mode
&
0444
)
>>
2
;
}
}
else
dest
_mode
=
flist_mode
&
ACCESSPERMS
&
~
orig_umask
;
return
(
flist_mode
&
~
CHMOD_BITS
)
|
(
dest
_mode
&
CHMOD_BITS
);
cur
_mode
=
flist_mode
&
ACCESSPERMS
&
~
orig_umask
;
return
(
flist_mode
&
~
CHMOD_BITS
)
|
(
cur
_mode
&
CHMOD_BITS
);
}
int
set_file_attrs
(
char
*
fname
,
struct
file_struct
*
file
,
STRUCT_STAT
*
st
,
...
...
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