* nscd/cache.c (prune_cache): Use stat64 not stat.

* nscd/connections.c (nscd_init): Likewise.
This commit is contained in:
Ulrich Drepper 2005-08-16 18:10:03 +00:00
parent b4f6f4be85
commit 80ea303760
3 changed files with 9 additions and 4 deletions

View File

@ -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]

View 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

View 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"),