1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

pysmbd: call vfs_stat() in set_sys_acl_conn()

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2021-01-12 11:58:41 +01:00 committed by Jeremy Allison
parent 6c421f523b
commit 9eef705ecf

View File

@ -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);