From 37305c65e7e58ac44b7de60a84908716ab887483 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 9 Feb 2012 14:46:26 +0100 Subject: 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 --- sys-utils/setsid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-utils/setsid.c') 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); -- cgit v1.2.3-55-g7522