From: Volker Lendecke Date: Sun, 24 Nov 2024 11:04:05 +0000 (+0100) Subject: smbd: Avoid a cast X-Git-Tag: tdb-1.4.13~441 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae7e1cb053c5b97895cb6a5498731bd3d42563e6;p=thirdparty%2Fsamba.git smbd: Avoid a cast Signed-off-by: Volker Lendecke Reviewed-by: Martin Schwenke --- 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; }