From: Ralph Boehme Date: Tue, 12 Jan 2021 10:58:41 +0000 (+0100) Subject: pysmbd: call vfs_stat() in set_sys_acl_conn() X-Git-Tag: samba-4.14.0rc1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9eef705ecf0eba6b77ab2b0e79234de2411fc2b0;p=thirdparty%2Fsamba.git pysmbd: call vfs_stat() in set_sys_acl_conn() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c index 3e791327577..216de7a82fd 100644 --- a/source3/smbd/pysmbd.c +++ b/source3/smbd/pysmbd.c @@ -141,6 +141,12 @@ static int set_sys_acl_conn(const char *fname, return -1; } + ret = vfs_stat(conn, smb_fname); + if (ret == -1) { + TALLOC_FREE(frame); + return -1; + } + status = openat_pathref_fsp(conn->cwd_fsp, smb_fname); if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(frame);