udhcpc: do not accept --background on NOMMU (same as -b)
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 8 May 2017 13:11:02 +0000 (15:11 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 8 May 2017 13:11:02 +0000 (15:11 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/d6_dhcpc.c
networking/udhcp/dhcpc.c

index 9eddbe24c3773812523f06fdea64c8da3a179a0a..18a104c614917b0dd97d93d4ea8b538e5887ea45 100644 (file)
@@ -54,7 +54,9 @@ static const char udhcpc6_longopts[] ALIGN1 =
        "request-option\0" Required_argument "O"
        "no-default-options\0" No_argument   "o"
        "foreground\0"     No_argument       "f"
+       USE_FOR_MMU(
        "background\0"     No_argument       "b"
+       )
 ///    IF_FEATURE_UDHCPC_ARPING("arping\0"     No_argument       "a")
        IF_FEATURE_UDHCP_PORT("client-port\0"   Required_argument "P")
        ;
index 1ccfff437b8e8c8b87a188ffaadc35ab355bf855..6aa6731fbc5dfe714ad1121edd37ddd31236fc2f 100644 (file)
@@ -73,7 +73,9 @@ static const char udhcpc_longopts[] ALIGN1 =
        "request-option\0" Required_argument "O"
        "no-default-options\0" No_argument   "o"
        "foreground\0"     No_argument       "f"
+       USE_FOR_MMU(
        "background\0"     No_argument       "b"
+       )
        "broadcast\0"      No_argument       "B"
        IF_FEATURE_UDHCPC_ARPING("arping\0"     Optional_argument "a")
        IF_FEATURE_UDHCP_PORT("client-port\0"   Required_argument "P")