diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-12 17:55:51 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-12 17:55:51 +0000 |
commit | dac7ff15b7d32deeeef3d9665744fc5774c21d70 (patch) | |
tree | 0e4c34863628d79fdad0c6217f4deb0ca0a91c33 /archival/gzip.c | |
parent | 79865bc5077cf6d17b27e9599921d4c85b1575fd (diff) | |
download | busybox-w32-dac7ff15b7d32deeeef3d9665744fc5774c21d70.tar.gz busybox-w32-dac7ff15b7d32deeeef3d9665744fc5774c21d70.tar.bz2 busybox-w32-dac7ff15b7d32deeeef3d9665744fc5774c21d70.zip |
- patch from Denis Vlasenko to add and use bb_xsocket() and to use
bb_xopen some more while at it.
Also use shorter boilerplate while at it.
Diffstat (limited to 'archival/gzip.c')
-rw-r--r-- | archival/gzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index 41ed3a2c7..5fb118706 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -1228,8 +1228,8 @@ int gzip_main(int argc, char **argv) | |||
1228 | inFileNum = STDIN_FILENO; | 1228 | inFileNum = STDIN_FILENO; |
1229 | outFileNum = STDOUT_FILENO; | 1229 | outFileNum = STDOUT_FILENO; |
1230 | } else { | 1230 | } else { |
1231 | inFileNum = open(argv[i], O_RDONLY); | 1231 | inFileNum = bb_xopen(argv[i], O_RDONLY); |
1232 | if (inFileNum < 0 || fstat(inFileNum, &statBuf) < 0) | 1232 | if (fstat(inFileNum, &statBuf) < 0) |
1233 | bb_perror_msg_and_die("%s", argv[i]); | 1233 | bb_perror_msg_and_die("%s", argv[i]); |
1234 | time_stamp = statBuf.st_ctime; | 1234 | time_stamp = statBuf.st_ctime; |
1235 | ifile_size = statBuf.st_size; | 1235 | ifile_size = statBuf.st_size; |