aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/gzip.c2
-rw-r--r--archival/unzip.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index ad2c24df1..7c18154ff 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -1206,7 +1206,7 @@ int gzip_main(int argc, char **argv)
1206 inFileNum = STDIN_FILENO; 1206 inFileNum = STDIN_FILENO;
1207 outFileNum = STDOUT_FILENO; 1207 outFileNum = STDOUT_FILENO;
1208 } else { 1208 } else {
1209 inFileNum = xopen3(argv[i], O_RDONLY, 0); 1209 inFileNum = xopen(argv[i], O_RDONLY);
1210 if (fstat(inFileNum, &statBuf) < 0) 1210 if (fstat(inFileNum, &statBuf) < 0)
1211 bb_perror_msg_and_die("%s", argv[i]); 1211 bb_perror_msg_and_die("%s", argv[i]);
1212 time_stamp = statBuf.st_ctime; 1212 time_stamp = statBuf.st_ctime;
diff --git a/archival/unzip.c b/archival/unzip.c
index 709ebf81a..1b80aea9f 100644
--- a/archival/unzip.c
+++ b/archival/unzip.c
@@ -333,7 +333,7 @@ int unzip_main(int argc, char **argv)
333 overwrite = o_always; 333 overwrite = o_always;
334 case 'y': /* Open file and fall into unzip */ 334 case 'y': /* Open file and fall into unzip */
335 unzip_create_leading_dirs(dst_fn); 335 unzip_create_leading_dirs(dst_fn);
336 dst_fd = xopen3(dst_fn, O_WRONLY | O_CREAT | O_TRUNC, 0777); 336 dst_fd = xopen(dst_fn, O_WRONLY | O_CREAT | O_TRUNC);
337 case -1: /* Unzip */ 337 case -1: /* Unzip */
338 if (verbosity == v_normal) { 338 if (verbosity == v_normal) {
339 printf(" inflating: %s\n", dst_fn); 339 printf(" inflating: %s\n", dst_fn);