Ignore:
Timestamp:
Aug 7, 2008, 11:49:04 AM (17 years ago)
Author:
Paul Smedley
Message:

Update trunk to 3.2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/modules/vfs_default.c

    r136 r141  
    658658        START_PROFILE(syscall_ntimes);
    659659#if defined(HAVE_UTIMES)
    660         {
     660        if (ts != NULL) {
    661661                struct timeval tv[2];
    662662                tv[0] = convert_timespec_to_timeval(ts[0]);
    663663                tv[1] = convert_timespec_to_timeval(ts[1]);
    664664                result = utimes(path, tv);
     665        } else {
     666                result = utimes(path, NULL);
    665667        }
    666668#elif defined(HAVE_UTIME)
    667         {
     669        if (ts != NULL) {
    668670                struct utimbuf times;
    669671                times.actime = convert_timespec_to_time_t(ts[0]);
    670672                times.modtime = convert_timespec_to_time_t(ts[1]);
    671673                result = utime(path, times);
     674        } else {
     675                result = utime(path, NULL);
    672676        }
    673677#else
Note: See TracChangeset for help on using the changeset viewer.