Set permissions of created file

1_00_stable_10817
Glenn L McGrath 2001-04-20 05:16:38 +00:00
parent 46cd74b9e3
commit 6ebd633829
1 changed files with 1 additions and 0 deletions

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);