|
@@ -30,13 +30,8 @@ int utime(const char *file, const struct utimbuf *times)
|
|
timevals[1].tv_usec = 0L;
|
|
timevals[1].tv_usec = 0L;
|
|
timevals[0].tv_sec = (long int) times->actime;
|
|
timevals[0].tv_sec = (long int) times->actime;
|
|
timevals[1].tv_sec = (long int) times->modtime;
|
|
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
|
|
#endif
|
|
libc_hidden_def(utime)
|
|
libc_hidden_def(utime)
|