about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-08-16 18:10:03 +0000
committerUlrich Drepper <drepper@redhat.com>2005-08-16 18:10:03 +0000
commit80ea303760944cd041921c0ce3debeacd95ca3d1 (patch)
tree55c80ce0a19f1e5a4183def466f351fe2fccd9ad
parentb4f6f4be85d32b9c03361c38376e36f08100e3e8 (diff)
downloadglibc-80ea303760944cd041921c0ce3debeacd95ca3d1.tar.gz
glibc-80ea303760944cd041921c0ce3debeacd95ca3d1.tar.xz
glibc-80ea303760944cd041921c0ce3debeacd95ca3d1.zip
* nscd/cache.c (prune_cache): Use stat64 not stat.
	* nscd/connections.c (nscd_init): Likewise.
-rw-r--r--ChangeLog5
-rw-r--r--nscd/cache.c4
-rw-r--r--nscd/connections.c4
3 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 504d0fa514..15f5973aee 100644
--- 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]
diff --git a/nscd/cache.c b/nscd/cache.c
index 800b7ecf27..cc9386b56f 100644
--- a/nscd/cache.c
+++ b/nscd/cache.c
@@ -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
diff --git a/nscd/connections.c b/nscd/connections.c
index 14e490b0ea..0a0654d6b8 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -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"),