diff options
Diffstat (limited to 'swaponoff.c')
-rw-r--r-- | swaponoff.c | 7 |
1 files changed, 6 insertions, 1 deletions
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) | |||
108 | while (*++(*argv)) | 108 | while (*++(*argv)) |
109 | switch (**argv) { | 109 | switch (**argv) { |
110 | case 'a': | 110 | case 'a': |
111 | whine_if_fstab_is_missing(); | 111 | { |
112 | struct stat statBuf; | ||
113 | |||
114 | if (stat("/etc/fstab", &statBuf) < 0) | ||
115 | fatalError("/etc/fstab file missing\n"); | ||
116 | } | ||
112 | do_em_all(); | 117 | do_em_all(); |
113 | break; | 118 | break; |
114 | default: | 119 | default: |