mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Merge branch '1619_preserve_attributes_timestamp'
* 1619_preserve_attributes_timestamp: Ticket #1619: Problem with "preserve attributes", file times and ntfs/vfat partitions
This commit is contained in:
commit
ea631fa018
@ -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