]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
userdel: Fix syslog message master
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 23 Dec 2025 11:05:09 +0000 (12:05 +0100)
committerAlejandro Colomar <foss+github@alejandro-colomar.es>
Wed, 24 Dec 2025 13:57:37 +0000 (14:57 +0100)
Actually log the user name as done with stderr message.

Reviewed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
src/userdel.c

index 56f308f0f5ab4c73bbf8fc58b6639bc0eb5403c4..f021276436fd5a9ef6c19a86ae22f1a8cad6d2e0 100644 (file)
@@ -820,7 +820,7 @@ static bool remove_mailbox (void)
                fprintf (stderr,
                         _("%s: %s not owned by %s, not removing\n"),
                         Prog, mailfile, user_name);
-               SYSLOG((LOG_ERR, "%s not owned by %s, not removed", mailfile, strerrno()));
+               SYSLOG((LOG_ERR, "%s not owned by %s, not removed", mailfile, user_name));
 #ifdef WITH_AUDIT
                audit_logger (AUDIT_DEL_USER,
                              "delete-mail-file",