cdown / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
05ad79
diff -up util-linux-2.23.2/login-utils/su-common.c.kzak util-linux-2.23.2/login-utils/su-common.c
05ad79
--- util-linux-2.23.2/login-utils/su-common.c.kzak	2015-06-24 11:14:25.102395082 +0200
05ad79
+++ util-linux-2.23.2/login-utils/su-common.c	2015-06-24 11:22:20.472859684 +0200
05ad79
@@ -359,10 +359,9 @@ create_watching_parent (void)
05ad79
       if (pid != (pid_t)-1)
05ad79
 	if (WIFSIGNALED (status))
05ad79
 	  {
05ad79
-	    status = WTERMSIG (status) + 128;
05ad79
-	    if (WCOREDUMP (status))
05ad79
-	      fprintf (stderr, _("%s (core dumped)\n"),
05ad79
-                 strsignal (WTERMSIG (status)));
05ad79
+            fprintf (stderr, "%s%s\n", strsignal (WTERMSIG (status)),
05ad79
+                     WCOREDUMP (status) ? _(" (core dumped)") : "");
05ad79
+            status = WTERMSIG (status) + 128;
05ad79
 	  }
05ad79
 	else
05ad79
 	  status = WEXITSTATUS (status);