+Mon May 22 15:14:17 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * krb_dbm.c (kerb_end_update): Use the POSIX utime instead of utimes.
+
Fri Apr 28 16:24:20 1995 Theodore Y. Ts'o <tytso@dcl>
* configure.in: Add check for KRB5_POSIX_LOCKS
/* before krb_db.h */
#include <krb.h>
#include <krb_db.h>
+#include <utime.h>
#ifdef NDBM
#include <ndbm.h>
retval = errno;
else {
struct stat st;
- struct timeval tv[2];
+ struct utimbuf times;
/* make sure that semaphore is "after" previous value. */
if (fstat (fd, &st) == 0
&& st.st_mtime <= age) {
- tv[0].tv_sec = st.st_atime;
- tv[0].tv_usec = 0;
- tv[1].tv_sec = age;
- tv[1].tv_usec = 0;
+ times.actime = st.st_atime;
+ times.modtime = age;
/* set times.. */
- utimes (new_okname, tv);
+ utime (new_okname, ×);
#ifndef NO_FSYNC
fsync(fd);
#endif