From: ikerexxe Date: Tue, 17 Nov 2020 15:58:40 +0000 (+0100) Subject: useradd: log exit code when failing X-Git-Tag: v4.9~44^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F296%2Fhead;p=thirdparty%2Fshadow.git useradd: log exit code when failing src/useradd.c: log exit code when failing --- diff --git a/src/useradd.c b/src/useradd.c index 107e65f85..065b8165e 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -338,7 +338,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); }