Changeset 141 for trunk/samba/source/modules/vfs_default.c
- Timestamp:
- Aug 7, 2008, 11:49:04 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/modules/vfs_default.c
r136 r141 658 658 START_PROFILE(syscall_ntimes); 659 659 #if defined(HAVE_UTIMES) 660 {660 if (ts != NULL) { 661 661 struct timeval tv[2]; 662 662 tv[0] = convert_timespec_to_timeval(ts[0]); 663 663 tv[1] = convert_timespec_to_timeval(ts[1]); 664 664 result = utimes(path, tv); 665 } else { 666 result = utimes(path, NULL); 665 667 } 666 668 #elif defined(HAVE_UTIME) 667 {669 if (ts != NULL) { 668 670 struct utimbuf times; 669 671 times.actime = convert_timespec_to_time_t(ts[0]); 670 672 times.modtime = convert_timespec_to_time_t(ts[1]); 671 673 result = utime(path, times); 674 } else { 675 result = utime(path, NULL); 672 676 } 673 677 #else
Note:
See TracChangeset
for help on using the changeset viewer.