(this is because do_mknod() might be using a different function
to handle fifos and sockets without the help of mknod().
if (!(buf = get_backup_name(fname)))
return 0;
if (!(buf = get_backup_name(fname)))
return 0;
/* Check to see if this is a device file, or link */
if (IS_DEVICE(file->mode)) {
if (am_root && preserve_devices) {
/* Check to see if this is a device file, or link */
if (IS_DEVICE(file->mode)) {
if (am_root && preserve_devices) {
kept = 1;
do_unlink(fname);
}
kept = 1;
do_unlink(fname);
}
if (!kept && S_ISDIR(file->mode)) {
/* make an empty directory */
if (!kept && S_ISDIR(file->mode)) {
/* make an empty directory */
if (am_root && preserve_devices && IS_DEVICE(file->mode)) {
if (statret != 0 ||
st.st_mode != file->mode ||
if (am_root && preserve_devices && IS_DEVICE(file->mode)) {
if (statret != 0 ||
st.st_mode != file->mode ||
if (preserve_hard_links && hard_link_check(file, HL_CHECK_MASTER))
return;
if (preserve_hard_links && hard_link_check(file, HL_CHECK_MASTER))
return;