diff options
author | Matt Kraai | 2001-11-12 16:44:55 +0000 |
---|---|---|
committer | Matt Kraai | 2001-11-12 16:44:55 +0000 |
commit | a5f09c668e8571844c065041f3c1f122fa5c62fe (patch) | |
tree | 7bb51b4c59e729627b3113a5528c59a0351b1de5 /archival/rpm2cpio.c | |
parent | c5f9a9dd0cf2154de6a581ffc9018715a02c118b (diff) | |
download | busybox-a5f09c668e8571844c065041f3c1f122fa5c62fe.zip busybox-a5f09c668e8571844c065041f3c1f122fa5c62fe.tar.gz |
Use fopen wrapper.
Diffstat (limited to 'archival/rpm2cpio.c')
-rw-r--r-- | archival/rpm2cpio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c index 8d639d6..22051da 100644 --- a/archival/rpm2cpio.c +++ b/archival/rpm2cpio.c @@ -68,8 +68,7 @@ extern int rpm2cpio_main(int argc, char **argv) if (argc == 1) { rpmfile = stdin; } else { - rpmfile = fopen(argv[1], "r"); - if (!rpmfile) perror_msg_and_die("Can't open rpm file"); + rpmfile = xfopen(argv[1], "r"); /* set the buffer size */ setvbuf(rpmfile, NULL, _IOFBF, 0x8000); } |