diff options
| author | Wayne Davison <wayned@samba.org> | 2006-12-12 20:17:05 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2006-12-12 20:17:05 +0000 |
| commit | 225aeca346b5d59f5058e900966f68d9f076c3d5 (patch) | |
| tree | fdc51ee1d6af341702be79b96d4192b806862246 /rsync.c | |
| parent | 0a62f5f38237a5b9a10d1c75f4b624c0035431a3 (diff) | |
| download | android_external_rsync-225aeca346b5d59f5058e900966f68d9f076c3d5.tar.gz android_external_rsync-225aeca346b5d59f5058e900966f68d9f076c3d5.tar.bz2 android_external_rsync-225aeca346b5d59f5058e900966f68d9f076c3d5.zip | |
Use new BITS_EQUAL() define.
Diffstat (limited to 'rsync.c')
| -rw-r--r-- | rsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |
