From: Harald Hoyer Date: Thu, 9 Feb 2012 13:46:26 +0000 (+0100) Subject: setsid: add "+" to getopt_long() X-Git-Tag: v2.21~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37305c65e7e58ac44b7de60a84908716ab887483;p=thirdparty%2Futil-linux.git setsid: add "+" to getopt_long() otherwise setsid wants to interpret arguments $ setsid sh -i setsid: invalid option -- 'i' Usage: setsid [options] [arguments ...] Signed-off-by: Harald Hoyer --- diff --git a/sys-utils/setsid.c b/sys-utils/setsid.c index 268871a8bd..efd20e6948 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);