mc/mc-preserveattr.patch
Jindrich Novy 910fbe258d - don't preserve attributes in copy/move while the option is switched off
(#195614)
- rebuild to fix iso9660 vfs because of missing gawk in buildroot(#381751,
    #363611)
2007-11-14 13:49:47 +00:00

13 lines
516 B
Diff

diff -up mc-2007-06-04-22/src/file.c.preserveattr mc-2007-06-04-22/src/file.c
--- mc-2007-06-04-22/src/file.c.preserveattr 2007-11-14 14:45:23.000000000 +0100
+++ mc-2007-06-04-22/src/file.c 2007-11-14 14:45:23.000000000 +0100
@@ -800,7 +800,7 @@ copy_file_file (FileOpContext *ctx, cons
}
}
- if (!appending) {
+ if (!appending && ctx->preserve) {
while (mc_chmod (dst_path, (src_mode & ctx->umask_kill))) {
temp_status = file_error (
_(" Cannot chmod target file \"%s\" \n %s "), dst_path);