Ticket #1619: Problem with "preserve attributes", file times and ntfs/vfat partitions

In changeset 78f01a3a9a there was added detection of
filesystem and defaulting to turning off "preserve attributes" on certain FS
(ntfs, vfat and some others).

Reason of bug: was removed call of  mc_utime() function.

Fix issue:
Restored call of mc_utime() function.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2009-09-18 15:30:28 +03:00
parent d450e8eb05
commit 13e1c9b3b1

View File

@ -743,13 +743,13 @@ copy_file_file (FileOpContext *ctx, const char *src_path, const char *dst_path,
break;
}
}
mc_utime (dst_path, &utb);
} else {
src_mode = umask(-1);
umask(src_mode);
src_mode = 0100666 & ~src_mode;
mc_chmod (dst_path, (src_mode & ctx->umask_kill));
}
mc_utime (dst_path, &utb);
}
}