userdel: Fix syslog message

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>
This commit is contained in:
Tobias Stoeckmann 2025-12-23 12:05:09 +01:00 committed by Alejandro Colomar
parent f6d9e5c019
commit 9f8cf33704

View 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",