Set permissions of created file

This commit is contained in:
Glenn L McGrath 2001-04-20 05:16:38 +00:00
parent 46cd74b9e3
commit 6ebd633829

View File

@ -147,6 +147,7 @@ copy_file(const char *src_name, const char *dst_name,
}
dst_file = fopen(dst_name, "w");
chmod(dst_name, srcStatBuf.st_mode);
if (dst_file == NULL) {
if (!quiet_flag) {
perror_msg("%s", dst_name);