From c3b7f7d6e710ad896349cd5a2e913d3efc79275d Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Mon, 26 Aug 2002 17:17:27 +0000 Subject: [PATCH] chmod on the NEW file --- archival/gunzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1