diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-08-26 17:17:27 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-08-26 17:17:27 +0000 |
commit | c3b7f7d6e710ad896349cd5a2e913d3efc79275d (patch) | |
tree | d063dc4e44f96fe335d8999ce2845c47e0e98a52 | |
parent | 193697db4eebd444191980e7d3a063a86fdcf213 (diff) | |
download | busybox-w32-c3b7f7d6e710ad896349cd5a2e913d3efc79275d.tar.gz busybox-w32-c3b7f7d6e710ad896349cd5a2e913d3efc79275d.tar.bz2 busybox-w32-c3b7f7d6e710ad896349cd5a2e913d3efc79275d.zip |
chmod on the NEW file
-rw-r--r-- | archival/gunzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c index c4712270d..ac2fb17ed 100644 --- a/archival/gunzip.c +++ b/archival/gunzip.c | |||
@@ -154,7 +154,7 @@ extern int gunzip_main(int argc, char **argv) | |||
154 | out_file = xfopen(new_path, "w"); | 154 | out_file = xfopen(new_path, "w"); |
155 | 155 | ||
156 | /* Set permissions on the file */ | 156 | /* Set permissions on the file */ |
157 | chmod(old_path, stat_buf.st_mode); | 157 | chmod(new_path, stat_buf.st_mode); |
158 | 158 | ||
159 | /* If unzip succeeds remove the old file */ | 159 | /* If unzip succeeds remove the old file */ |
160 | delete_path = old_path; | 160 | delete_path = old_path; |