From: Ralph Boehme Date: Fri, 23 May 2025 14:35:35 +0000 (+0200) Subject: smbd: expand logging in contend_dirleases() X-Git-Tag: tevent-0.17.0~96 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=509081e7e;p=thirdparty%2Fsamba.git smbd: expand logging in contend_dirleases() BUG: https://bugzilla.samba.org/show_bug.cgi?id=15861 Signed-off-by: Ralph Boehme Reviewed-by: Bjoern Jacke --- diff --git a/source3/smbd/smb2_oplock.c b/source3/smbd/smb2_oplock.c index 84e48f9a648..d1f3e85d3ed 100644 --- a/source3/smbd/smb2_oplock.c +++ b/source3/smbd/smb2_oplock.c @@ -1336,8 +1336,13 @@ void contend_dirleases(struct connection_struct *conn, ret = SMB_VFS_STAT(conn, parent_fname); if (ret != 0) { - DBG_ERR("Failed to stat [%s]: %s\n", - smb_fname_str_dbg(parent_fname), strerror(errno)); + DBG_ERR("Trigger [conn: %s] [smb_fname: %s] cwd [%s], " + "failed to stat parent [%s]: %s\n", + conn->connectpath, + smb_fname_str_dbg(smb_fname), + get_current_dir_name(), + smb_fname_str_dbg(parent_fname), + strerror(errno)); TALLOC_FREE(parent_fname); return; }