From 5d761421d1c720cc33df306bd758cd62e018a7c9 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 4 Jun 2021 12:47:11 -0700 Subject: [PATCH] s3: smbd: In can_delete_directory_fsp() explicitly call IS_VETO_PATH(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/dir.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 034003e3caf..4c1b1807cc9 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -2118,7 +2118,10 @@ NTSTATUS can_delete_directory_fsp(files_struct *fsp) TALLOC_FREE(talloced); continue; } - + if (IS_VETO_PATH(conn, dname)) { + TALLOC_FREE(talloced); + continue; + } if (!is_visible_file(conn, dir_hnd, dname,