mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
Fix crashes when running RAW-ACLs against system with tdb ACL modules
(caused by the POSIX pathname fixes). Jeremy.
This commit is contained in:
parent
bb0fb97562
commit
f85aa66ca2
@ -195,7 +195,7 @@ static NTSTATUS get_acl_blob(TALLOC_CTX *ctx,
|
||||
if (fsp && fsp->fh->fd != -1) {
|
||||
ret = SMB_VFS_FSTAT(fsp, &sbuf);
|
||||
} else {
|
||||
if (fsp->posix_open) {
|
||||
if (fsp && fsp->posix_open) {
|
||||
ret = SMB_VFS_LSTAT(handle->conn, name, &sbuf);
|
||||
} else {
|
||||
ret = SMB_VFS_STAT(handle->conn, name, &sbuf);
|
||||
@ -513,7 +513,7 @@ static NTSTATUS inherit_new_acl(vfs_handle_struct *handle,
|
||||
if (fsp && !fsp->is_directory && fsp->fh->fd != -1) {
|
||||
ret = SMB_VFS_FSTAT(fsp, &sbuf);
|
||||
} else {
|
||||
if (fsp->posix_open) {
|
||||
if (fsp && fsp->posix_open) {
|
||||
ret = SMB_VFS_LSTAT(handle->conn,fname, &sbuf);
|
||||
} else {
|
||||
ret = SMB_VFS_STAT(handle->conn,fname, &sbuf);
|
||||
|
@ -381,7 +381,7 @@ static NTSTATUS inherit_new_acl(vfs_handle_struct *handle,
|
||||
if (fsp && !fsp->is_directory && fsp->fh->fd != -1) {
|
||||
ret = SMB_VFS_FSTAT(fsp, &sbuf);
|
||||
} else {
|
||||
if (fsp->posix_open) {
|
||||
if (fsp && fsp->posix_open) {
|
||||
ret = SMB_VFS_LSTAT(handle->conn,fname, &sbuf);
|
||||
} else {
|
||||
ret = SMB_VFS_STAT(handle->conn,fname, &sbuf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user