From 3364d78b18386623e7af5da18ba1bb0cc6286279 Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Tue, 28 Mar 2000 00:58:14 +0000 Subject: Yet another installment in the ongoing tar saga -Erik --- swaponoff.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'swaponoff.c') diff --git a/swaponoff.c b/swaponoff.c index bc096ea95..dca401966 100644 --- a/swaponoff.c +++ b/swaponoff.c @@ -108,7 +108,12 @@ extern int swap_on_off_main(int argc, char **argv) while (*++(*argv)) switch (**argv) { case 'a': - whine_if_fstab_is_missing(); + { + struct stat statBuf; + + if (stat("/etc/fstab", &statBuf) < 0) + fatalError("/etc/fstab file missing\n"); + } do_em_all(); break; default: -- cgit v1.2.3