mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
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");
|
||||
chmod(dst_name, srcStatBuf.st_mode);
|
||||
if (dst_file == NULL) {
|
||||
if (!quiet_flag) {
|
||||
perror_msg("%s", dst_name);
|
||||
|
Loading…
Reference in New Issue
Block a user