} else {
result = utimensat(AT_FDCWD, smb_fname->base_name, NULL, 0);
}
#elif defined(HAVE_UTIMES)
/* try other methods if utimensat is not supported */
if (result == -1 && errno == ENOSYS)
#endif
{
#if defined(HAVE_UTIMES)
if (ft != NULL) {
struct timeval tv[2];
tv[0] = convert_timespec_to_timeval(ft->atime);
errno = ENOSYS;
result = -1;
out:
END_PROFILE(syscall_ntimes);
-