X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/00ed4b5bf3e0980b62327c88445d11cc60fb164e..3c3791e8be94dc75a1fa2167ce1ac8d5e724ebc8:/flist.c diff --git a/flist.c b/flist.c index 00076561..6baa8bf8 100644 --- a/flist.c +++ b/flist.c @@ -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)