diff options
author | Wayne Davison <wayned@samba.org> | 2006-12-07 03:31:31 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2006-12-07 03:31:31 +0000 |
commit | e238c9977dd2542b99585b484c4659b5eb469fd8 (patch) | |
tree | a779e5590b59f8c6dd8739fda0b13ec4af4d7b52 /backup.c | |
parent | b37b7c9949060919e326226b6799186815d3b5a3 (diff) | |
download | android_external_rsync-e238c9977dd2542b99585b484c4659b5eb469fd8.tar.gz android_external_rsync-e238c9977dd2542b99585b484c4659b5eb469fd8.tar.bz2 android_external_rsync-e238c9977dd2542b99585b484c4659b5eb469fd8.zip |
Use the new device defines: F_RDEV_P(), DEV_MAJOR(), and DEV_MINOR().
Diffstat (limited to 'backup.c')
-rw-r--r-- | backup.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -192,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 |