diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-06-20 23:50:26 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-06-20 23:50:26 +0200 |
commit | 7cf45ae10e71d11ca53e7b0220c76562a8045113 (patch) | |
tree | 079b2952fb7f85867d7b2057ff54a05a07bb0df7 | |
parent | e24e88697af81800060efc75e67777ef245b15cd (diff) | |
download | busybox-w32-7cf45ae10e71d11ca53e7b0220c76562a8045113.tar.gz busybox-w32-7cf45ae10e71d11ca53e7b0220c76562a8045113.tar.bz2 busybox-w32-7cf45ae10e71d11ca53e7b0220c76562a8045113.zip |
setsid: fix broken -c
This did not work: setsid sh -c 'anything'
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | miscutils/setsid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/setsid.c b/miscutils/setsid.c index 1b27377b2..9bddc2fcf 100644 --- a/miscutils/setsid.c +++ b/miscutils/setsid.c | |||
@@ -29,7 +29,7 @@ int setsid_main(int argc UNUSED_PARAM, char **argv) | |||
29 | unsigned opt; | 29 | unsigned opt; |
30 | 30 | ||
31 | opt_complementary = "-1"; /* at least one arg */ | 31 | opt_complementary = "-1"; /* at least one arg */ |
32 | opt = getopt32(argv, "c"); | 32 | opt = getopt32(argv, "+c"); /* +: stop on first non-opt */ |
33 | argv += optind; | 33 | argv += optind; |
34 | 34 | ||
35 | /* setsid() is allowed only when we are not a process group leader. | 35 | /* setsid() is allowed only when we are not a process group leader. |