int saved_errno = 0;
become_root();
- if (fsp && fsp->fh->fd != -1) {
+ if (fsp && fsp_get_pathref_fd(fsp) != -1) {
sizeret = SMB_VFS_FGETXATTR(fsp, xattr_name, val, size);
} else {
sizeret = SMB_VFS_GETXATTR(handle->conn, smb_fname,
(unsigned int)pblob->length, fsp_str_dbg(fsp)));
become_root();
- if (fsp->fh->fd != -1) {
+ if (fsp_get_pathref_fd(fsp) != -1) {
ret = SMB_VFS_FSETXATTR(fsp, XATTR_NTACL_NAME,
pblob->data, pblob->length, 0);
} else {
return NT_STATUS_NO_MEMORY;
}
- if (fsp != NULL && fsp->fh->fd != -1) {
+ if (fsp != NULL && fsp_get_pathref_fd(fsp) != -1) {
length = SMB_VFS_NEXT_FGETXATTR(handle,
fsp,
config->xattr_name,
return false;
}
- if (fsp->fh->fd != -1) {
+ if (fsp_get_pathref_fd(fsp) != -1) {
ret = SMB_VFS_NEXT_FSETXATTR(handle, fsp, config->xattr_name,
blob.data, blob.length, 0);
} else {
pai_buf = create_pai_buf_v2(file_ace_list, dir_ace_list,
sd_type, &store_size);
- if (fsp->fh->fd != -1) {
+ if (fsp_get_pathref_fd(fsp) != -1) {
ret = SMB_VFS_FSETXATTR(fsp, SAMBA_POSIX_INHERITANCE_EA_NAME,
pai_buf, store_size, 0);
} else {
}
do {
- if (fsp->fh->fd != -1) {
+ if (fsp_get_pathref_fd(fsp) != -1) {
ret = SMB_VFS_FGETXATTR(fsp, SAMBA_POSIX_INHERITANCE_EA_NAME,
pai_buf, pai_buf_size);
} else {