From: Jeremy Allison Date: Mon, 7 Jun 2021 16:14:03 +0000 (-0700) Subject: s3: smbd: recursive_rmdir(), when calling synthetic_pathref() for a directory entry... X-Git-Tag: tevent-0.11.0~631 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ddc226c8497d3c653d35f5811ddba1e71f626420;p=thirdparty%2Fsamba.git s3: smbd: recursive_rmdir(), when calling synthetic_pathref() for a directory entry we've already stat()'ed, re-use the stat struct. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 0b3fb217026..7c38a79e9d7 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -922,7 +922,7 @@ bool recursive_rmdir(TALLOC_CTX *ctx, dirfsp, dname, NULL, - NULL, + &smb_dname_full->st, smb_dname_full->twrp, smb_dname_full->flags, &atname);