chmod on the NEW file
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 @@
 			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;