View | Details | Raw Unified | Return to bug 19890 | Differences between
and this patch

Collapse All | Expand All

(-)a/source3/modules/vfs_default.c (-2 / +6 lines)
Lines 786-792 static int vfswrap_ntimes(vfs_handle_struct *handle, Link Here
786
	} else {
786
	} else {
787
		result = utimensat(AT_FDCWD, smb_fname->base_name, NULL, 0);
787
		result = utimensat(AT_FDCWD, smb_fname->base_name, NULL, 0);
788
	}
788
	}
789
#elif defined(HAVE_UTIMES)
789
	/* try other methods if utimensat is not supported */
790
	if (result == -1 && errno == ENOSYS)
791
#endif
792
{
793
#if defined(HAVE_UTIMES)
790
	if (ft != NULL) {
794
	if (ft != NULL) {
791
		struct timeval tv[2];
795
		struct timeval tv[2];
792
		tv[0] = convert_timespec_to_timeval(ft->atime);
796
		tv[0] = convert_timespec_to_timeval(ft->atime);
Lines 808-813 static int vfswrap_ntimes(vfs_handle_struct *handle, Link Here
808
	errno = ENOSYS;
812
	errno = ENOSYS;
809
	result = -1;
813
	result = -1;
810
#endif
814
#endif
815
}
811
816
812
 out:
817
 out:
813
	END_PROFILE(syscall_ntimes);
818
	END_PROFILE(syscall_ntimes);
814
- 

Return to bug 19890