cdown / rpms / util-linux

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