summaryrefslogtreecommitdiff
path: root/archival/rpm2cpio.c
diff options
context:
space:
mode:
authorMatt Kraai2001-11-12 16:44:55 +0000
committerMatt Kraai2001-11-12 16:44:55 +0000
commita5f09c668e8571844c065041f3c1f122fa5c62fe (patch)
tree7bb51b4c59e729627b3113a5528c59a0351b1de5 /archival/rpm2cpio.c
parentc5f9a9dd0cf2154de6a581ffc9018715a02c118b (diff)
downloadbusybox-a5f09c668e8571844c065041f3c1f122fa5c62fe.zip
busybox-a5f09c668e8571844c065041f3c1f122fa5c62fe.tar.gz
Use fopen wrapper.
Diffstat (limited to 'archival/rpm2cpio.c')
-rw-r--r--archival/rpm2cpio.c3
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);
}