projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c97578d
)
swapoff: dont pass "p" in opt_complementary
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 13 Aug 2011 21:36:36 +0000
(23:36 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 13 Aug 2011 21:36:36 +0000
(23:36 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/swaponoff.c
patch
|
blob
|
history
diff --git
a/util-linux/swaponoff.c
b/util-linux/swaponoff.c
index 43ddb4031220723d38bd02ef6ce86eae8c599c21..e53e24c7103a28c8567c5d220164de5e20702072 100644
(file)
--- 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