swapoff: dont pass "p" in opt_complementary
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
c97578de6b
commit
c21c310e46
@ -114,6 +114,7 @@ int swap_on_off_main(int argc UNUSED_PARAM, char **argv)
|
||||
#if !ENABLE_FEATURE_SWAPON_PRI
|
||||
ret = getopt32(argv, "a");
|
||||
#else
|
||||
if (applet_name[5] == 'n')
|
||||
opt_complementary = "p+";
|
||||
ret = getopt32(argv, (applet_name[5] == 'n') ? "ap:" : "a", &g_flags);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user