[Pkg-shadow-devel] Bug#414542: suspend and vigr/vipw

dean gaudet dean at arctic.org
Mon Mar 12 13:08:59 CET 2007


Package: shadow
Version: 1:4.0.18.1-7

try doing vigr/vipw and then ^Z... and fg... sometimes nastiness happens 
right away, sometimes it seems to take a few ^Z/fg cycles.

grep -r for WUNTRACED you'll see the vipw.c code differs from the other 
instances... patch below.

-dean

p.s. i use zsh.. and perhaps as in #317747 it's different with bash... but 
i haven't tested since this code is almost certainly wrong.


Index: shadow-4.0.18.1/src/vipw.c
===================================================================
--- shadow-4.0.18.1.orig/src/vipw.c	2007-03-12 04:29:11.895712161 -0700
+++ shadow-4.0.18.1/src/vipw.c	2007-03-12 04:31:08.368644850 -0700
@@ -202,7 +202,7 @@
 		pid = waitpid (pid, &status, WUNTRACED);
 		if (WIFSTOPPED (status)) {
 			kill (getpid (), SIGSTOP);
-			kill (getpid (), SIGCONT);
+			kill (pid, SIGCONT);
 		} else
 			break;
 	}




More information about the Pkg-shadow-devel mailing list