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>
This commit is contained in:
parent
0b077eab51
commit
37305c65e7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue