diff options
author | Harald Hoyer | 2012-02-09 14:46:26 +0100 |
---|---|---|
committer | Karel Zak | 2012-02-09 15:33:33 +0100 |
commit | 37305c65e7e58ac44b7de60a84908716ab887483 (patch) | |
tree | f9623a356e5c2bb5884188f18dff31850629d3af /sys-utils/setsid.c | |
parent | tunelp: free allocation, use xalloc (diff) | |
download | kernel-qcow2-util-linux-37305c65e7e58ac44b7de60a84908716ab887483.tar.gz kernel-qcow2-util-linux-37305c65e7e58ac44b7de60a84908716ab887483.tar.xz kernel-qcow2-util-linux-37305c65e7e58ac44b7de60a84908716ab887483.zip |
setsid: add "+" to getopt_long()
otherwise setsid wants to interpret <program> arguments
$ setsid sh -i
setsid: invalid option -- 'i'
Usage:
setsid [options] <program> [arguments ...]
Signed-off-by: Harald Hoyer <harald@redhat.com>
Diffstat (limited to 'sys-utils/setsid.c')
-rw-r--r-- | sys-utils/setsid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/setsid.c b/sys-utils/setsid.c index 268871a8b..efd20e694 100644 --- a/sys-utils/setsid.c +++ b/sys-utils/setsid.c @@ -44,7 +44,7 @@ int main(int argc, char **argv) bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); - while ((ch = getopt_long(argc, argv, "Vh", longopts, NULL)) != -1) + while ((ch = getopt_long(argc, argv, "+Vh", longopts, NULL)) != -1) switch (ch) { case 'V': printf(UTIL_LINUX_VERSION); |