From cad5364599eb5062d59e0c397ed638ddd61a8d5d Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Wed, 19 Mar 2003 09:13:01 +0000 Subject: Major coreutils update. --- util-linux/fdflush.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'util-linux/fdflush.c') diff --git a/util-linux/fdflush.c b/util-linux/fdflush.c index 0756ddfbf..c3fcf3325 100644 --- a/util-linux/fdflush.c +++ b/util-linux/fdflush.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "busybox.h" /* From */ @@ -35,22 +36,19 @@ extern int fdflush_main(int argc, char **argv) int fd, result; if (argc <= 1) - show_usage(); - if ((fd = open(*(++argv), 0)) < 0) - goto die_the_death; + bb_show_usage(); + + fd = bb_xopen(argv[1], 0); result = ioctl(fd, FDFLUSH, 0); #ifdef CONFIG_FEATURE_CLEAN_UP close(fd); #endif if (result) { - goto die_the_death; + bb_perror_nomsg_and_die(); } /* Don't bother closing. Exit does * that, so we can save a few bytes */ return EXIT_SUCCESS; - -die_the_death: - perror_msg_and_die(NULL); } -- cgit v1.2.3