Set permissions of created file
This commit is contained in:
parent
46cd74b9e3
commit
6ebd633829
@ -147,6 +147,7 @@ copy_file(const char *src_name, const char *dst_name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
dst_file = fopen(dst_name, "w");
|
dst_file = fopen(dst_name, "w");
|
||||||
|
chmod(dst_name, srcStatBuf.st_mode);
|
||||||
if (dst_file == NULL) {
|
if (dst_file == NULL) {
|
||||||
if (!quiet_flag) {
|
if (!quiet_flag) {
|
||||||
perror_msg("%s", dst_name);
|
perror_msg("%s", dst_name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user