diff options
author | Karel Zak | 2017-01-09 12:48:14 +0100 |
---|---|---|
committer | Karel Zak | 2017-01-09 12:50:09 +0100 |
commit | 0f0b5823a68c78e4ef62efd1f03cfcb6d549060d (patch) | |
tree | 97c58867236b8d98a4b266fcf89c7f2b2da88adb /sys-utils/nsenter.c | |
parent | Merge branch 'betterMinixChecks' of https://github.com/n3world/util-linux (diff) | |
download | kernel-qcow2-util-linux-0f0b5823a68c78e4ef62efd1f03cfcb6d549060d.tar.gz kernel-qcow2-util-linux-0f0b5823a68c78e4ef62efd1f03cfcb6d549060d.tar.xz kernel-qcow2-util-linux-0f0b5823a68c78e4ef62efd1f03cfcb6d549060d.zip |
nsenter: fix usage() and improve man page
The "program" is optional and $SHELL is executed by default.
Addresses: https://github.com/karelzak/util-linux/issues/389
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/nsenter.c')
-rw-r--r-- | sys-utils/nsenter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/nsenter.c b/sys-utils/nsenter.c index 6dc7b225c..afa1b9c50 100644 --- a/sys-utils/nsenter.c +++ b/sys-utils/nsenter.c @@ -70,7 +70,7 @@ static void usage(int status) FILE *out = status == EXIT_SUCCESS ? stdout : stderr; fputs(USAGE_HEADER, out); - fprintf(out, _(" %s [options] <program> [<argument>...]\n"), + fprintf(out, _(" %s [options] [<program> [<argument>...]]\n"), program_invocation_short_name); fputs(USAGE_SEPARATOR, out); |