From 13e1c9b3b19169bd0e20ab26bbab9d3a251d328e Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Fri, 18 Sep 2009 15:30:28 +0300 Subject: [PATCH] Ticket #1619: Problem with "preserve attributes", file times and ntfs/vfat partitions In changeset 78f01a3a9ae7ef8b91c7541edd4760ac5a0d3f8f 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 --- src/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.c b/src/file.c index 37bb57c2c..6fcac8739 100644 --- a/src/file.c +++ b/src/file.c @@ -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); } }