aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-08-26 17:17:27 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-08-26 17:17:27 +0000
commit57473a936a5e64e6a6444dbfd335b92b3ac32f6d (patch)
treed063dc4e44f96fe335d8999ce2845c47e0e98a52 /archival
parent15f4797b2f8d39e2199b33b52d902fcc32d48494 (diff)
downloadbusybox-w32-57473a936a5e64e6a6444dbfd335b92b3ac32f6d.tar.gz
busybox-w32-57473a936a5e64e6a6444dbfd335b92b3ac32f6d.tar.bz2
busybox-w32-57473a936a5e64e6a6444dbfd335b92b3ac32f6d.zip
chmod on the NEW file
git-svn-id: svn://busybox.net/trunk/busybox@5391 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival')
-rw-r--r--archival/gunzip.c2
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;