From ae7e1cb053c5b97895cb6a5498731bd3d42563e6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 24 Nov 2024 12:04:05 +0100 Subject: [PATCH] smbd: Avoid a cast Signed-off-by: Volker Lendecke Reviewed-by: Martin Schwenke --- source3/smbd/open.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 6554467379f..e61b50b3801 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -132,9 +132,9 @@ static NTSTATUS smbd_check_access_rights_fname( if (!use_privs && get_current_uid(conn) == (uid_t)0) { /* I'm sorry sir, I didn't know you were root... */ - DBG_DEBUG("root override on %s. Granting 0x%x\n", + DBG_DEBUG("root override on %s. Granting 0x%" PRIx32 "\n", smb_fname_str_dbg(smb_fname), - (unsigned int)access_mask); + access_mask); return NT_STATUS_OK; } -- 2.47.3