From: Ken Raeburn Date: Sun, 13 Mar 2005 08:16:34 +0000 (+0000) Subject: st_mtim.tv_nsec, not tv_usec X-Git-Tag: ms-bug-test-20060525~317 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b467422a4ca6706441ec68a025a302a36c907e0f;p=krb5.git st_mtim.tv_nsec, not tv_usec ticket: 2959 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17122 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 4063b1722..c2d47942f 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,7 +1,7 @@ 2005-03-13 Ken Raeburn * 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. diff --git a/src/util/profile/configure.in b/src/util/profile/configure.in index faae28955..0164540d7 100644 --- a/src/util/profile/configure.in +++ b/src/util/profile/configure.in @@ -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 +AC_CHECK_MEMBERS([struct stat.st_mtimensec,struct stat.st_mtimespec.tv_nsec,struct stat.st_mtim.tv_nsec],,,[#include #include ]) AC_PROG_AWK AC_KRB5_TCL diff --git a/src/util/profile/prof_file.c b/src/util/profile/prof_file.c index 347fef739..004c3efd7 100644 --- a/src/util/profile/prof_file.c +++ b/src/util/profile/prof_file.c @@ -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