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
225aeca3
Commit
225aeca3
authored
Dec 12, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new BITS_EQUAL() define.
parent
0a62f5f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
generator.c
generator.c
+3
-4
rsync.c
rsync.c
+1
-1
No files found.
generator.c
View file @
225aeca3
...
...
@@ -520,8 +520,7 @@ static void do_delete_pass(struct file_list *flist)
int
unchanged_attrs
(
struct
file_struct
*
file
,
STRUCT_STAT
*
st
)
{
if
(
preserve_perms
&&
(
unsigned
)(
st
->
st_mode
&
CHMOD_BITS
)
!=
(
file
->
mode
&
CHMOD_BITS
))
if
(
preserve_perms
&&
!
BITS_EQUAL
(
st
->
st_mode
,
file
->
mode
,
CHMOD_BITS
))
return
0
;
if
(
am_root
&&
preserve_uid
&&
st
->
st_uid
!=
F_UID
(
file
))
...
...
@@ -548,7 +547,7 @@ void itemize(struct file_struct *file, int ndx, int statret, STRUCT_STAT *st,
&&
(
!
(
iflags
&
ITEM_XNAME_FOLLOWS
)
||
*
xname
))
||
(
keep_time
&&
cmp_time
(
file
->
modtime
,
st
->
st_mtime
)
!=
0
))
iflags
|=
ITEM_REPORT_TIME
;
if
(
(
unsigned
)(
st
->
st_mode
&
CHMOD_BITS
)
!=
(
file
->
mode
&
CHMOD_BITS
))
if
(
!
BITS_EQUAL
(
st
->
st_mode
,
file
->
mode
,
CHMOD_BITS
))
iflags
|=
ITEM_REPORT_PERMS
;
if
(
preserve_uid
&&
am_root
&&
F_UID
(
file
)
!=
st
->
st_uid
)
iflags
|=
ITEM_REPORT_OWNER
;
...
...
@@ -1342,7 +1341,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
t
=
"special file"
;
}
if
(
statret
==
0
&&
(
unsigned
)(
st
.
st_mode
&
~
CHMOD_BITS
)
==
(
file
->
mode
&
~
CHMOD_BITS
)
&&
BITS_EQUAL
(
st
.
st_mode
,
file
->
mode
,
_S_IFMT
)
&&
st
.
st_rdev
==
rdev
)
{
/* The device or special file is identical. */
if
(
itemizing
)
...
...
rsync.c
View file @
225aeca3
...
...
@@ -261,7 +261,7 @@ int set_file_attrs(char *fname, struct file_struct *file, STRUCT_STAT *st,
if
(
daemon_chmod_modes
&&
!
S_ISLNK
(
new_mode
))
new_mode
=
tweak_mode
(
new_mode
,
daemon_chmod_modes
);
#ifdef HAVE_CHMOD
if
(
(
st
->
st_mode
&
CHMOD_BITS
)
!=
(
new_mode
&
CHMOD_BITS
))
{
if
(
!
BITS_EQUAL
(
st
->
st_mode
,
new_mode
,
CHMOD_BITS
))
{
int
ret
=
do_chmod
(
fname
,
new_mode
);
if
(
ret
<
0
)
{
rsyserr
(
FERROR
,
errno
,
...
...
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