diff options
Diffstat (limited to 'util-linux/swaponoff.c')
-rw-r--r-- | util-linux/swaponoff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index 0f8c4f5..83aadd0 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/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); } } |