diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-04-12 17:55:51 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-04-12 17:55:51 +0000 |
commit | 00657c96b9b3963230d89ccc3dc2959d034673e7 (patch) | |
tree | 0e4c34863628d79fdad0c6217f4deb0ca0a91c33 /archival | |
parent | fa6199c4ed8fdbb6901f43a06fb22d37e6e9b9e1 (diff) | |
download | busybox-w32-00657c96b9b3963230d89ccc3dc2959d034673e7.tar.gz busybox-w32-00657c96b9b3963230d89ccc3dc2959d034673e7.tar.bz2 busybox-w32-00657c96b9b3963230d89ccc3dc2959d034673e7.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.
git-svn-id: svn://busybox.net/trunk/busybox@14833 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival')
-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; |