summaryrefslogtreecommitdiff
path: root/swaponoff.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaponoff.c')
-rw-r--r--swaponoff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaponoff.c b/swaponoff.c
index 0f8c4f5..83aadd0 100644
--- a/swaponoff.c
+++ b/swaponoff.c
@@ -83,7 +83,7 @@ static void do_em_all()
exit(FALSE);
}
while ((m = getmntent(f)) != NULL) {
- if (!strstr(m->mnt_type, MNTTYPE_SWAP)) {
+ if (strcmp(m->mnt_type, MNTTYPE_SWAP)==0) {
swap_enable_disable(m->mnt_fsname);
}
}