mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s3: smbd: fload_inherited_info(). Always use SMB_VFS_FGETXATTR().
If the underlying fd is -1, we want this to fail with EBADF. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
f694b36335
commit
757b7d5c6a
@ -618,16 +618,8 @@ static struct pai_val *fload_inherited_info(files_struct *fsp)
|
||||
}
|
||||
|
||||
do {
|
||||
if (fsp_get_pathref_fd(fsp) != -1) {
|
||||
ret = SMB_VFS_FGETXATTR(fsp, SAMBA_POSIX_INHERITANCE_EA_NAME,
|
||||
ret = SMB_VFS_FGETXATTR(fsp, SAMBA_POSIX_INHERITANCE_EA_NAME,
|
||||
pai_buf, pai_buf_size);
|
||||
} else {
|
||||
ret = SMB_VFS_GETXATTR(fsp->conn,
|
||||
fsp->fsp_name,
|
||||
SAMBA_POSIX_INHERITANCE_EA_NAME,
|
||||
pai_buf, pai_buf_size);
|
||||
}
|
||||
|
||||
if (ret == -1) {
|
||||
if (errno != ERANGE) {
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user