[Pkg-shadow-commits] r940 - trunk/debian/patches

Christian Perrier bubulle at costa.debian.org
Sat Apr 1 10:38:46 UTC 2006


Author: bubulle
Date: 2006-04-01 10:38:43 +0000 (Sat, 01 Apr 2006)
New Revision: 940

Added:
   trunk/debian/patches/492_correct_exit_status_for_run_commands
Modified:
   trunk/debian/patches/series
Log:
Add the patch from the BTS

Added: trunk/debian/patches/492_correct_exit_status_for_run_commands
===================================================================
--- trunk/debian/patches/492_correct_exit_status_for_run_commands	2006-03-31 15:18:03 UTC (rev 939)
+++ trunk/debian/patches/492_correct_exit_status_for_run_commands	2006-04-01 10:38:43 UTC (rev 940)
@@ -0,0 +1,15 @@
+Index: shadow-4.0.15/src/su.c
+===================================================================
+--- shadow-4.0.15.orig/src/su.c	2006-04-01 12:31:34.000000000 +0200
++++ shadow-4.0.15/src/su.c	2006-04-01 12:38:15.680753816 +0200
+@@ -272,7 +272,9 @@
+ 		exit (-1);
+ 	}
+ 
+-	exit (WEXITSTATUS (status));
++	exit (WIFEXITED (status)
++	      ? WEXITSTATUS (status)
++	      : WTERMSIG (status) + 128);
+ }
+ #endif
+ 

Modified: trunk/debian/patches/series
===================================================================
--- trunk/debian/patches/series	2006-03-31 15:18:03 UTC (rev 939)
+++ trunk/debian/patches/series	2006-04-01 10:38:43 UTC (rev 940)
@@ -40,3 +40,4 @@
 491_configure.in_friendly_selinux_detection
 592_manpages_typos
 486_chgpasswd.8
+492_correct_exit_status_for_run_commands




More information about the Pkg-shadow-commits mailing list