mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
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:
parent
d450e8eb05
commit
13e1c9b3b1
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user