aboutsummaryrefslogtreecommitdiff
path: root/util-linux/swaponoff.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-06-07 17:28:53 +0000
committerEric Andersen <andersen@codepoet.org>2000-06-07 17:28:53 +0000
commita42982e8f569417e93bc3b47c501cbe83a5bfade (patch)
treea28be75735aa78f38cf8464f874857fd0132c664 /util-linux/swaponoff.c
parent1f6262b8e2b4225a028b016fed4a3a9ee717b540 (diff)
downloadbusybox-w32-a42982e8f569417e93bc3b47c501cbe83a5bfade.tar.gz
busybox-w32-a42982e8f569417e93bc3b47c501cbe83a5bfade.tar.bz2
busybox-w32-a42982e8f569417e93bc3b47c501cbe83a5bfade.zip
* Fixed 'swapon -a' and 'swapoff -a', which were broken.
* Fixed 'mount -a' so it works as expected. * Implemented 'ls -R' (enabled by enabling BB_FEATURE_LS_RECURSIVE) -Erik
Diffstat (limited to '')
-rw-r--r--util-linux/swaponoff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 0f8c4f5f3..83aadd08a 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -83,7 +83,7 @@ static void do_em_all()
83 exit(FALSE); 83 exit(FALSE);
84 } 84 }
85 while ((m = getmntent(f)) != NULL) { 85 while ((m = getmntent(f)) != NULL) {
86 if (!strstr(m->mnt_type, MNTTYPE_SWAP)) { 86 if (strcmp(m->mnt_type, MNTTYPE_SWAP)==0) {
87 swap_enable_disable(m->mnt_fsname); 87 swap_enable_disable(m->mnt_fsname);
88 } 88 }
89 } 89 }