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