diff options
Diffstat (limited to 'util-linux/nsenter.c')
-rw-r--r-- | util-linux/nsenter.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/util-linux/nsenter.c b/util-linux/nsenter.c index c48dcf885..e6339da2f 100644 --- a/util-linux/nsenter.c +++ b/util-linux/nsenter.c | |||
@@ -17,7 +17,7 @@ | |||
17 | //kbuild:lib-$(CONFIG_NSENTER) += nsenter.o | 17 | //kbuild:lib-$(CONFIG_NSENTER) += nsenter.o |
18 | 18 | ||
19 | //usage:#define nsenter_trivial_usage | 19 | //usage:#define nsenter_trivial_usage |
20 | //usage: "[OPTIONS] [PROG [ARGS]]" | 20 | //usage: "[OPTIONS] [PROG ARGS]" |
21 | //usage:#define nsenter_full_usage "\n" | 21 | //usage:#define nsenter_full_usage "\n" |
22 | //usage: "\n -t PID Target process to get namespaces from" | 22 | //usage: "\n -t PID Target process to get namespaces from" |
23 | //usage: "\n -m[FILE] Enter mount namespace" | 23 | //usage: "\n -m[FILE] Enter mount namespace" |
@@ -103,8 +103,9 @@ static const struct namespace_descr ns_list[] = { | |||
103 | }; | 103 | }; |
104 | /* | 104 | /* |
105 | * Upstream nsenter doesn't support the short option for --preserve-credentials | 105 | * Upstream nsenter doesn't support the short option for --preserve-credentials |
106 | * "+": stop on first non-option | ||
106 | */ | 107 | */ |
107 | static const char opt_str[] ALIGN1 = "U::i::u::n::p::m::""t:+S:+G:+r::w::F"; | 108 | static const char opt_str[] ALIGN1 = "+""U::i::u::n::p::m::""t:+S:+G:+r::w::F"; |
108 | 109 | ||
109 | #if ENABLE_LONG_OPTS | 110 | #if ENABLE_LONG_OPTS |
110 | static const char nsenter_longopts[] ALIGN1 = | 111 | static const char nsenter_longopts[] ALIGN1 = |