[Pkg-shadow-commits] r2982 - upstream/trunk/src

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Fri May 22 11:10:02 UTC 2009


Author: nekral-guest
Date: 2009-05-22 11:10:02 +0000 (Fri, 22 May 2009)
New Revision: 2982

Modified:
   upstream/trunk/src/newgrp.c
Log:
	* NEWS, src/newgrp.c: Return the exit status of the child. Thanks
	to Lionel Elie Mamane.


Modified: upstream/trunk/src/newgrp.c
===================================================================
--- upstream/trunk/src/newgrp.c	2009-05-22 11:08:46 UTC (rev 2981)
+++ upstream/trunk/src/newgrp.c	2009-05-22 11:10:02 UTC (rev 2982)
@@ -347,7 +347,8 @@
 				         (unsigned long) gid, name));
 			}
 			closelog ();
-			exit (E_SUCCESS);
+			exit ((0 != WIFEXITED (cst)) ? WEXITSTATUS (cst)
+			                             : WTERMSIG (cst) + 128);
 		}
 
 		/* child - restore signals to their default state */




More information about the Pkg-shadow-commits mailing list