X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/6b2a3d5de667e4abf938c453121340ad47ccc5c0..121bfb2b4d9df88bfbc9917209842bb8d9d17e22:/backup.c diff --git a/backup.c b/backup.c index 328c0658..e1d0ee79 100644 --- a/backup.c +++ b/backup.c @@ -27,8 +27,6 @@ extern int preserve_devices; extern int preserve_specials; extern int preserve_links; extern int safe_symlinks; -extern int flist_extra_ndx; -extern int file_struct_len; extern int backup_dir_len; extern unsigned int backup_dir_remainder; extern char backup_dir_buf[MAXPATHLEN]; @@ -194,7 +192,8 @@ static int keep_backup(const char *fname) /* Check to see if this is a device file, or link */ if ((am_root && preserve_devices && IS_DEVICE(file->mode)) || (preserve_specials && IS_SPECIAL(file->mode))) { - dev_t rdev = MAKEDEV(F_DMAJOR(file), F_DMINOR(file)); + uint32 *devp = F_RDEV_P(file); + dev_t rdev = MAKEDEV(DEV_MAJOR(devp), DEV_MINOR(devp)); do_unlink(buf); if (do_mknod(buf, file->mode, rdev) < 0 && (errno != ENOENT || make_bak_dir(buf) < 0