Skip to content

Commit

Permalink
* nscd/cache.c (prune_cache): Use stat64 not stat.
Browse files Browse the repository at this point in the history
	* nscd/connections.c (nscd_init): Likewise.
  • Loading branch information
Ulrich Drepper committed Aug 16, 2005
1 parent b4f6f4b commit 80ea303
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
4 changes: 2 additions & 2 deletions nscd/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions nscd/connections.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 80ea303

Please sign in to comment.