st_mtim.tv_nsec, not tv_usec
authorKen Raeburn <raeburn@mit.edu>
Sun, 13 Mar 2005 08:16:34 +0000 (08:16 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 13 Mar 2005 08:16:34 +0000 (08:16 +0000)
ticket: 2959
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17122 dc483132-0cff-0310-8789-dd5450dbe970

src/util/profile/ChangeLog
src/util/profile/configure.in
src/util/profile/prof_file.c

index 4063b1722b762e34f0cdd2d9c523f2dfb67e9bff..c2d47942f481cb6f4d609ac48d9e16e384db844c 100644 (file)
@@ -1,7 +1,7 @@
 2005-03-13  Ken Raeburn  <raeburn@mit.edu>
 
        * configure.in: Check struct stat for fields st_mtimensec,
-       st_mtimespec.tv_nsec, and st_mtim.tv_usec.
+       st_mtimespec.tv_nsec, and st_mtim.tv_nsec.
        * prof_file.c (profile_update_file_data): If one of them is
        found, use it as the fractional part of the timestamp.  Do
        re-read the file if the fractional parts don't match.
index faae289558920d5da13021ab1609c88c716dc126..0164540d763b024f5d75ee0f5bbaed1c19c6c6ae 100644 (file)
@@ -6,7 +6,7 @@ AC_CHECK_SIZEOF(int)
 AC_CHECK_SIZEOF(long)
 AC_CHECK_HEADERS(unistd.h stdlib.h pwd.h)
 AC_CHECK_FUNCS(stat access strdup getpwuid_r)
-AC_CHECK_MEMBERS([struct stat.st_mtimensec,struct stat.st_mtimespec.tv_nsec,struct stat.st_mtim.tv_usec],,,[#include <sys/types.h>
+AC_CHECK_MEMBERS([struct stat.st_mtimensec,struct stat.st_mtimespec.tv_nsec,struct stat.st_mtim.tv_nsec],,,[#include <sys/types.h>
 #include <sys/stat.h>])
 AC_PROG_AWK
 AC_KRB5_TCL
index 347fef739e2918d120cdd38f43b0fd40e468c841..004c3efd7466c4ffdea20e11f790031013619a36 100644 (file)
@@ -347,8 +347,8 @@ errcode_t profile_update_file_data(prf_data_t data)
        frac = st.st_mtimensec;
 #elif defined HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
        frac = st.st_mtimespec.tv_nsec;
-#elif defined HAVE_STRUCT_STAT_ST_MTIM_TV_USEC
-       frac = st.st_mtim.tv_usec;
+#elif defined HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
+       frac = st.st_mtim.tv_nsec;
 #else
        frac = 0;
 #endif