[PATCH] Use fopen64 rather than fopen for nscd log file

Jakub Jelinek jakub@redhat.com
Tue Sep 20 20:07:00 GMT 2005


Hi!

Some users sometimes create awfully huge log files...

2005-09-20  Jakub Jelinek  <jakub@redhat.com>

	* nscd/dbg_log.c (init_logfile): Use fopen64 rather than fopen.

--- libc/nscd/dbg_log.c.jj	2005-09-20 21:15:16.000000000 +0200
+++ libc/nscd/dbg_log.c	2005-09-20 21:52:39.000000000 +0200
@@ -44,7 +44,7 @@ init_logfile (void)
 {
   if (logfilename)
     {
-      dbgout = fopen (logfilename, "a");
+      dbgout = fopen64 (logfilename, "a");
       return dbgout == NULL ? 0 : 1;
     }
   return 1;

	Jakub



More information about the Libc-hacker mailing list