From a5f09c668e8571844c065041f3c1f122fa5c62fe Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Mon, 12 Nov 2001 16:44:55 +0000 Subject: Use fopen wrapper. --- archival/rpm2cpio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'archival') 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); } -- cgit v1.1