diff options
author | Denys Vlasenko | 2011-08-13 23:36:36 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-08-13 23:36:36 +0200 |
commit | c21c310e4646579d34bb9db25745b1121dc364d5 (patch) | |
tree | 50d6fff16b623c8a3a85af5bcf5dc1cb8cb12718 /util-linux | |
parent | c97578de6b283592265fd9132df7d878f6ec6530 (diff) | |
download | busybox-c21c310e4646579d34bb9db25745b1121dc364d5.zip busybox-c21c310e4646579d34bb9db25745b1121dc364d5.tar.gz |
swapoff: dont pass "p" in opt_complementary
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/swaponoff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index 43ddb40..e53e24c 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c @@ -114,7 +114,8 @@ int swap_on_off_main(int argc UNUSED_PARAM, char **argv) #if !ENABLE_FEATURE_SWAPON_PRI ret = getopt32(argv, "a"); #else - opt_complementary = "p+"; + if (applet_name[5] == 'n') + opt_complementary = "p+"; ret = getopt32(argv, (applet_name[5] == 'n') ? "ap:" : "a", &g_flags); if (ret & 2) { // -p |