X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/e2e053bbd78582a34e9252202423ca26e9267320..71b291d71b70cd09865882235fca3a8d35edc6b3:/flist.c diff --git a/flist.c b/flist.c index 0890f9eb..6baa8bf8 100644 --- a/flist.c +++ b/flist.c @@ -367,12 +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; - else { - rdev = file->u.rdev; + else rdev_high = rdev & ~(DEV64_T)0xFF; - } } } if (file->uid == uid)