Contents of /trunk/busybox/patches/busybox-1.19.0-swap.patch
Parent Directory | Revision Log
Revision 1519 -
(show annotations)
(download)
Mon Sep 5 21:52:12 2011 UTC (13 years ago) by niro
File size: 402 byte(s)
Mon Sep 5 21:52:12 2011 UTC (13 years ago) by niro
File size: 402 byte(s)
-added upstream patches
1 | --- busybox-1.19.0/util-linux/swaponoff.c |
2 | +++ busybox-1.19.0-swap/util-linux/swaponoff.c |
3 | @@ -114,7 +114,8 @@ int swap_on_off_main(int argc UNUSED_PAR |
4 | #if !ENABLE_FEATURE_SWAPON_PRI |
5 | ret = getopt32(argv, "a"); |
6 | #else |
7 | - opt_complementary = "p+"; |
8 | + if (applet_name[5] == 'n') |
9 | + opt_complementary = "p+"; |
10 | ret = getopt32(argv, (applet_name[5] == 'n') ? "ap:" : "a", &g_flags); |
11 | |
12 | if (ret & 2) { // -p |