projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Oops. Forgot the usleep.c file.
[oweals/busybox.git]
/
swaponoff.c
diff --git
a/swaponoff.c
b/swaponoff.c
index bc096ea95a045b4f22c1247c7dfff09a6fbc7725..dca40196626a51180fb641c5acba26a06101804a 100644
(file)
--- 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: