From: Jeremy Allison Date: Mon, 7 Jun 2021 16:22:28 +0000 (-0700) Subject: s3: smbd: rmdir_internals(), when calling synthetic_pathref() for a directory entry... X-Git-Tag: tevent-0.11.0~632 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3ca31905ed87d5c25f8bcca7d0e14ccefa70abe;p=thirdparty%2Fsamba.git s3: smbd: rmdir_internals(), 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 3cae46f039f..0b3fb217026 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -1150,7 +1150,7 @@ static NTSTATUS rmdir_internals(TALLOC_CTX *ctx, struct files_struct *fsp) dirfsp, dname, NULL, - NULL, + &smb_dname_full->st, smb_dname->twrp, smb_dname->flags, &direntry_fname);