* nscd/cache.c (prune_cache): Use stat64 not stat.
authorUlrich Drepper <drepper@redhat.com>
Tue, 16 Aug 2005 18:10:03 +0000 (18:10 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 16 Aug 2005 18:10:03 +0000 (18:10 +0000)
* nscd/connections.c (nscd_init): Likewise.

ChangeLog
nscd/cache.c
nscd/connections.c

index 504d0fa..15f5973 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-16  Ulrich Drepper  <drepper@redhat.com>
+
+       * nscd/cache.c (prune_cache): Use stat64 not stat.
+       * nscd/connections.c (nscd_init): Likewise.
+
 2005-08-10  Sergio Gelato  <Sergio.Gelato@astro.su.se>
 
        [BZ #1188]
index 800b7ec..cc9386b 100644 (file)
@@ -203,9 +203,9 @@ prune_cache (struct database_dyn *table, time_t now)
      the entries also in this case.  */
   if (table->check_file)
     {
-      struct stat st;
+      struct stat64 st;
 
-      if (stat (table->filename, &st) < 0)
+      if (stat64 (table->filename, &st) < 0)
        {
          char buf[128];
          /* We cannot stat() the file, disable file checking if the
index 14e490b..0a0654d 100644 (file)
@@ -710,9 +710,9 @@ cannot set socket to close on exec: %s; disabling paranoia mode"),
        if (dbs[cnt].check_file)
          {
            /* We need the modification date of the file.  */
-           struct stat st;
+           struct stat64 st;
 
-           if (stat (dbs[cnt].filename, &st) < 0)
+           if (stat64 (dbs[cnt].filename, &st) < 0)
              {
                /* We cannot stat() the file, disable file checking.  */
                dbg_log (_("cannot stat() file `%s': %s"),