[shadow-utils] improve the failure syslog message in useradd (#830617)

Tomáš Mráz tmraz at fedoraproject.org
Tue Mar 19 17:46:18 UTC 2013


commit a253a4a28b36f248a58a23addcd5333509810bd7
Author: Tomas Mraz <tmraz at fedoraproject.org>
Date:   Tue Mar 19 18:46:14 2013 +0100

    improve the failure syslog message in useradd (#830617)

 shadow-4.1.5.1-logmsg.patch |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/shadow-4.1.5.1-logmsg.patch b/shadow-4.1.5.1-logmsg.patch
new file mode 100644
index 0000000..7d5cbc8
--- /dev/null
+++ b/shadow-4.1.5.1-logmsg.patch
@@ -0,0 +1,12 @@
+diff -up shadow-4.1.5.1/src/useradd.c.logmsg shadow-4.1.5.1/src/useradd.c
+--- shadow-4.1.5.1/src/useradd.c.logmsg	2013-02-20 15:41:44.000000000 +0100
++++ shadow-4.1.5.1/src/useradd.c	2013-03-19 18:40:04.908292810 +0100
+@@ -275,7 +275,7 @@ static void fail_exit (int code)
+ 	              user_name, AUDIT_NO_ID,
+ 	              SHADOW_AUDIT_FAILURE);
+ #endif
+-	SYSLOG ((LOG_INFO, "failed adding user '%s', data deleted", user_name));
++	SYSLOG ((LOG_INFO, "failed adding user '%s', exit code: %d", user_name, code));
+ 	exit (code);
+ }
+ 


More information about the scm-commits mailing list