]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pysmbd: call vfs_stat() in set_sys_acl_conn()
authorRalph Boehme <slow@samba.org>
Tue, 12 Jan 2021 10:58:41 +0000 (11:58 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 14 Jan 2021 17:55:33 +0000 (17:55 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/pysmbd.c

index 3e7913275775b0281c882ff83ef0c485fbe3c5cc..216de7a82fdd55ff4e98c1b924693725832b48e0 100644 (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);