chmod on the NEW file
This commit is contained in:
parent
193697db4e
commit
c3b7f7d6e7
@ -154,7 +154,7 @@ extern int gunzip_main(int argc, char **argv)
|
|||||||
out_file = xfopen(new_path, "w");
|
out_file = xfopen(new_path, "w");
|
||||||
|
|
||||||
/* Set permissions on the file */
|
/* Set permissions on the file */
|
||||||
chmod(old_path, stat_buf.st_mode);
|
chmod(new_path, stat_buf.st_mode);
|
||||||
|
|
||||||
/* If unzip succeeds remove the old file */
|
/* If unzip succeeds remove the old file */
|
||||||
delete_path = old_path;
|
delete_path = old_path;
|
||||||
|
Loading…
Reference in New Issue
Block a user