diff options
author | Ralph Boehme <slow@samba.org> | 2021-01-12 11:58:41 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-01-14 17:55:33 +0000 |
commit | 9eef705ecf0eba6b77ab2b0e79234de2411fc2b0 (patch) | |
tree | e8e00faa1f30e6ca509f57a6c37b520aeb8a6616 | |
parent | 6c421f523bf0cbf95d6724b866de9d1f8809c0d2 (diff) | |
download | samba-9eef705ecf0eba6b77ab2b0e79234de2411fc2b0.tar.gz |
pysmbd: call vfs_stat() in set_sys_acl_conn()
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/smbd/pysmbd.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |