diff options
author | Euan Harris <euan.harris@docker.com> | 2018-05-03 13:34:46 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-05-22 17:52:51 +0200 |
commit | adb69765e52ad32608e3b56e0dd70a0510ab1b7c (patch) | |
tree | 0f24d33da066b57d19d2eb58cf64ad4faccaeb93 | |
parent | 70baf859a61391746c409e9e219b236b3011dcc2 (diff) | |
download | busybox-w32-adb69765e52ad32608e3b56e0dd70a0510ab1b7c.tar.gz busybox-w32-adb69765e52ad32608e3b56e0dd70a0510ab1b7c.tar.bz2 busybox-w32-adb69765e52ad32608e3b56e0dd70a0510ab1b7c.zip |
nsenter: Rename --network option to --net
In nsenter from util-linux, the long version of the -n option is
--net=<path>. BusyBox's version expects --network=<path>, so scripts
and examples written for util-linux's version cause BusyBox's version
to exit with the usage message.
Confusingly, until commit 036585a911a5f, the usage message erroneously
claimed that the long option was indeed called --net; after that commit
long options are not listed at all.
Signed-off-by: Euan Harris <euan.harris@docker.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | util-linux/nsenter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/nsenter.c b/util-linux/nsenter.c index c6933c8d5..35439a2ab 100644 --- a/util-linux/nsenter.c +++ b/util-linux/nsenter.c | |||
@@ -112,7 +112,7 @@ static const char nsenter_longopts[] ALIGN1 = | |||
112 | "user\0" Optional_argument "U" | 112 | "user\0" Optional_argument "U" |
113 | "ipc\0" Optional_argument "i" | 113 | "ipc\0" Optional_argument "i" |
114 | "uts\0" Optional_argument "u" | 114 | "uts\0" Optional_argument "u" |
115 | "network\0" Optional_argument "n" | 115 | "net\0" Optional_argument "n" |
116 | "pid\0" Optional_argument "p" | 116 | "pid\0" Optional_argument "p" |
117 | "mount\0" Optional_argument "m" | 117 | "mount\0" Optional_argument "m" |
118 | "target\0" Required_argument "t" | 118 | "target\0" Required_argument "t" |