From 57473a936a5e64e6a6444dbfd335b92b3ac32f6d Mon Sep 17 00:00:00 2001 From: bug1 Date: Mon, 26 Aug 2002 17:17:27 +0000 Subject: chmod on the NEW file git-svn-id: svn://busybox.net/trunk/busybox@5391 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- archival/gunzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archival') 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) 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; -- cgit v1.2.3-55-g6feb