svn commit: branches/uClibc_0_9_28/libc/sysdeps/linux/common
vapier at uclibc.org
vapier at uclibc.org
Sun Jan 28 05:32:51 UTC 2007
Author: vapier
Date: 2007-01-27 21:32:51 -0800 (Sat, 27 Jan 2007)
New Revision: 17570
Log:
pull utime fix from trunk
Modified:
branches/uClibc_0_9_28/libc/sysdeps/linux/common/utime.c
Changeset:
Modified: branches/uClibc_0_9_28/libc/sysdeps/linux/common/utime.c
===================================================================
--- branches/uClibc_0_9_28/libc/sysdeps/linux/common/utime.c 2007-01-28 05:32:12 UTC (rev 17569)
+++ branches/uClibc_0_9_28/libc/sysdeps/linux/common/utime.c 2007-01-28 05:32:51 UTC (rev 17570)
@@ -23,12 +23,7 @@
timevals[1].tv_usec = 0L;
timevals[0].tv_sec = (long int) times->actime;
timevals[1].tv_sec = (long int) times->modtime;
- } else {
- if (gettimeofday(&timevals[0], NULL) < 0) {
- return -1;
- }
- timevals[1] = timevals[0];
}
- return utimes(file, timevals);
+ return utimes(file, times ? timevals : NULL);
}
#endif
More information about the uClibc-cvs
mailing list