[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-3244-g613f284

Jeremy Allison jra at samba.org
Tue Jul 15 22:27:43 GMT 2008


The branch, v3-3-test has been updated
       via  613f2849ad2dc25fe2e5f8a76d69797b5b302bb9 (commit)
      from  15920f838835f5dbbac8712202267c2a99237686 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 613f2849ad2dc25fe2e5f8a76d69797b5b302bb9
Author: Jeremy Allison <jra at samba.org>
Date:   Tue Jul 15 15:26:36 2008 -0700

    Fix from Volodymyr Khomenko <Volodymyr.Khomenko at exanet.com>. Make ntimes
    function more like POSIX and allow NULL arg. Help vfs developers.
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source/modules/vfs_default.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/modules/vfs_default.c b/source/modules/vfs_default.c
index 6ee677e..381aa18 100644
--- a/source/modules/vfs_default.c
+++ b/source/modules/vfs_default.c
@@ -657,18 +657,22 @@ static int vfswrap_ntimes(vfs_handle_struct *handle, const char *path, const str
 
 	START_PROFILE(syscall_ntimes);
 #if defined(HAVE_UTIMES)
-	{
+	if (ts != NULL) {
 		struct timeval tv[2];
 		tv[0] = convert_timespec_to_timeval(ts[0]);
 		tv[1] = convert_timespec_to_timeval(ts[1]);
 		result = utimes(path, tv);
+	} else {
+		result = utimes(path, NULL);
 	}
 #elif defined(HAVE_UTIME)
-	{
+	if (ts != NULL) {
 		struct utimbuf times;
 		times.actime = convert_timespec_to_time_t(ts[0]);
 		times.modtime = convert_timespec_to_time_t(ts[1]);
 		result = utime(path, times);
+	} else {
+		result = utime(path, NULL);
 	}
 #else
 	errno = ENOSYS;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list