mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-10 11:01:16 -04:00
Simplify the setting of rdev & rdev_high in send_file_entry().
This commit is contained in:
1 parent
00ed4b5bf3
commit
84a3efa0ab
1 file changed
+3
-5
@@ -367,13 +367,11 @@ void send_file_entry(struct file_struct *file, int f, unsigned short base_flags)
|
||||
} else
|
||||
rdev = 0;
|
||||
} else if (IS_DEVICE(mode)) {
|
||||
if ((file->u.rdev & ~(DEV64_T)0xFF) == rdev_high) {
|
||||
rdev = file->u.rdev;
|
||||
if ((rdev & ~(DEV64_T)0xFF) == rdev_high)
|
||||
flags |= XMIT_SAME_HIGH_RDEV;
|
||||
rdev = file->u.rdev;
|
||||
} else {
|
||||
rdev = file->u.rdev;
|
||||
else
|
||||
rdev_high = rdev & ~(DEV64_T)0xFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (file->uid == uid)
|
||||
|
||||
Reference in new issue
Block a user