summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorGlenn L McGrath2002-08-26 17:17:27 +0000
committerGlenn L McGrath2002-08-26 17:17:27 +0000
commitc3b7f7d6e710ad896349cd5a2e913d3efc79275d (patch)
treed063dc4e44f96fe335d8999ce2845c47e0e98a52 /archival
parent193697db4eebd444191980e7d3a063a86fdcf213 (diff)
downloadbusybox-c3b7f7d6e710ad896349cd5a2e913d3efc79275d.zip
busybox-c3b7f7d6e710ad896349cd5a2e913d3efc79275d.tar.gz
chmod on the NEW file
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 c471227..ac2fb17 100644
--- a/archival/gunzip.c
+++ b/archival/gunzip.c
@@ -154,7 +154,7 @@ extern int gunzip_main(int argc, char **argv)
out_file = xfopen(new_path, "w");
/* 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 */
delete_path = old_path;