]> granicus.if.org Git - shadow/commitdiff
Fix typo.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 18 May 2008 16:38:13 +0000 (16:38 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 18 May 2008 16:38:13 +0000 (16:38 +0000)
src/newgrp.c

index b1b37ff1ef880eb1ccfb452a344ce7d419d383f1..7ecacf2d07c5277a11c175095f0b29a623aa01cb 100644 (file)
@@ -294,7 +294,7 @@ static void syslog_sg (const char *name, const char *group)
                                pid = waitpid (child, &cst, WUNTRACED);
                                if (pid == child && WIFSTOPPED (cst)) {
                                        /* stop when child stops */
-                                       kill (getpid (), WSTOPSIG(status));
+                                       kill (getpid (), WSTOPSIG(cst));
                                        /* wake child when resumed */
                                        kill (child, SIGCONT);
                                }