mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
vfs_gpfs: remove ENOSYS fallback from vfs_gpfs_fset_dos_attributes()
This API call has existed for a long time, so we can safely assume that this always works. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14771 Pair-Programmed-With: Christof Schmitt <cs@samba.org> Signed-off-by: Ralph Boehme <slow@samba.org> Signed-off-by: Christof Schmitt <cs@samba.org>
This commit is contained in:
parent
fde1b98143
commit
3679f54f17
@ -1584,13 +1584,9 @@ static NTSTATUS vfs_gpfs_fset_dos_attributes(struct vfs_handle_struct *handle,
|
||||
}
|
||||
|
||||
attrs.winAttrs = vfs_gpfs_dosmode_to_winattrs(dosmode);
|
||||
|
||||
ret = gpfswrap_set_winattrs(fsp_get_io_fd(fsp),
|
||||
GPFS_WINATTR_SET_ATTRS, &attrs);
|
||||
|
||||
if (ret == -1 && errno == ENOSYS) {
|
||||
return SMB_VFS_NEXT_FSET_DOS_ATTRIBUTES(handle, fsp, dosmode);
|
||||
}
|
||||
|
||||
if (ret == -1) {
|
||||
DBG_WARNING("Setting winattrs failed for %s: %s\n",
|
||||
fsp->fsp_name->base_name, strerror(errno));
|
||||
|
Loading…
x
Reference in New Issue
Block a user