useradd: log exit code when failing

src/useradd.c: log exit code when failing
This commit is contained in:
ikerexxe 2020-11-17 16:58:40 +01:00
parent 599cc003da
commit abb5c99114

View File

@ -338,7 +338,7 @@ static void fail_exit (int code)
user_name, AUDIT_NO_ID, user_name, AUDIT_NO_ID,
SHADOW_AUDIT_FAILURE); SHADOW_AUDIT_FAILURE);
#endif #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); exit (code);
} }