kloczek / rpms / mc

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