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:
Harald Hoyer 2012-02-09 14:46:26 +01:00 committed by Karel Zak
parent 0b077eab51
commit 37305c65e7
1 changed files with 1 additions and 1 deletions

View File

@ -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);