]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
useradd: log exit code when failing 296/head
authorikerexxe <ipedrosa@redhat.com>
Tue, 17 Nov 2020 15:58:40 +0000 (16:58 +0100)
committerikerexxe <ipedrosa@redhat.com>
Tue, 17 Nov 2020 15:58:40 +0000 (16:58 +0100)
src/useradd.c: log exit code when failing

src/useradd.c

index 107e65f8503d9404a639c0d3822a15e075a96d45..065b8165e34e9b43454ab4f6ddde1b00ae6ce92d 100644 (file)
@@ -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);
 }