BUG: https://bugzilla.samba.org/show_bug.cgi?id=14771
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
}
rc = gpfswrap_set_times(fsp_get_io_fd(fsp), flags, gpfs_times);
-
- if (rc != 0 && errno != ENOSYS) {
+ if (rc != 0) {
DBG_WARNING("gpfs_set_times() returned with error %s for %s\n",
strerror(errno),
fsp_str_dbg(fsp));
/* Try to use gpfs_set_times if it is enabled and available */
if (config->settimes) {
- ret = smbd_gpfs_set_times(fsp, ft);
- if (ret == 0 || (ret == -1 && errno != ENOSYS)) {
- return ret;
- }
+ return smbd_gpfs_set_times(fsp, ft);
}
DBG_DEBUG("gpfs_set_times() not available or disabled, "