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:
Slava Zanko 2009-09-26 01:01:27 +03:00
commit ea631fa018

View File

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