From: Wayne Davison Date: Thu, 8 Apr 2004 23:05:36 +0000 (+0000) Subject: Fixed a bug in the sending of rdev when the high-bits match. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/00ed4b5bf3e0980b62327c88445d11cc60fb164e Fixed a bug in the sending of rdev when the high-bits match. --- diff --git a/flist.c b/flist.c index 0890f9eb..00076561 100644 --- a/flist.c +++ b/flist.c @@ -367,9 +367,10 @@ 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) + if ((file->u.rdev & ~(DEV64_T)0xFF) == rdev_high) { flags |= XMIT_SAME_HIGH_RDEV; - else { + rdev = file->u.rdev; + } else { rdev = file->u.rdev; rdev_high = rdev & ~(DEV64_T)0xFF; }