From: Volker Lendecke Date: Fri, 9 Jan 2026 09:44:47 +0000 (+0100) Subject: smbd: Fix a panic message X-Git-Tag: tdb-1.4.15~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d2e957956b5aac9b5ade7e11e724a14e7ad6ea1;p=thirdparty%2Fsamba.git smbd: Fix a panic message %s is not a proper file name :-) Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/source3/smbd/close.c b/source3/smbd/close.c index d2d53e779e1..31daea801cf 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -538,8 +538,11 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp, (unsigned int)lck_state.del_token->uid); if (!push_sec_ctx()) { - smb_panic("close_remove_share_mode: file %s. failed to push " - "sec_ctx.\n"); + char *msg = talloc_asprintf( + talloc_tos(), + "close_remove_share_mode: file %s. " + "failed to push sec_ctx.\n", fsp_str_dbg(fsp)); + smb_panic(msg); } set_sec_ctx(lck_state.del_token->uid,