Fix bug #6085 - In vfs_default.c change utime( ) call.
authorMiguel Suarez <Miguel.Suarez@stratus.com>
Tue, 3 Feb 2009 22:36:50 +0000 (14:36 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 3 Feb 2009 22:36:50 +0000 (14:36 -0800)
source3/modules/vfs_default.c

index f8ac3e85d3b26f02b47f2be7e9f870a2a82c033a..679be57558fa400d80675aeada99ae7ff2eddbc4 100644 (file)
@@ -735,7 +735,7 @@ static int vfswrap_ntimes(vfs_handle_struct *handle, const char *path,
                struct utimbuf times;
                times.actime = convert_timespec_to_time_t(ft->atime);
                times.modtime = convert_timespec_to_time_t(ft->mtime);
                struct utimbuf times;
                times.actime = convert_timespec_to_time_t(ft->atime);
                times.modtime = convert_timespec_to_time_t(ft->mtime);
-               result = utime(path, times);
+               result = utime(path, &times);
        } else {
                result = utime(path, NULL);
        }
        } else {
                result = utime(path, NULL);
        }