From 3cfff1b2a83ab4324882e21024c2ac03c41b0349 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 5 Mar 2015 14:07:48 +0000 Subject: - Fix -d option to s6-setsid - Version: 2.1.2.0 --- src/daemontools-extras/s6-setsid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/daemontools-extras') diff --git a/src/daemontools-extras/s6-setsid.c b/src/daemontools-extras/s6-setsid.c index 51de048..609b041 100644 --- a/src/daemontools-extras/s6-setsid.c +++ b/src/daemontools-extras/s6-setsid.c @@ -19,7 +19,7 @@ int main (int argc, char const *const *argv, char const *const *envp) subgetopt_t l = SUBGETOPT_ZERO ; for (;;) { - register int opt = subgetopt_r(argc, argv, "sbfgiIqt:", &l) ; + register int opt = subgetopt_r(argc, argv, "sbfgiIqd:", &l) ; if (opt == -1) break ; switch (opt) { @@ -30,7 +30,7 @@ int main (int argc, char const *const *argv, char const *const *envp) case 'i' : insist = 2 ; break ; case 'I' : insist = 1 ; break ; case 'q' : insist = 0 ; break ; - case 't' : if (!uint0_scan(l.arg, &ctty)) dieusage() ; break ; + case 'd' : if (!uint0_scan(l.arg, &ctty)) dieusage() ; break ; default : dieusage() ; } } -- cgit v1.2.3