From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5566 invoked by alias); 20 Sep 2005 20:07:01 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 5520 invoked by uid 22791); 20 Sep 2005 20:07:01 -0000 Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 20 Sep 2005 20:07:01 +0000 Received: from sunsite.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.1/8.13.1) with ESMTP id j8KK6qLq028253; Tue, 20 Sep 2005 22:06:52 +0200 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.13.1/8.13.1/Submit) id j8KK6pUE028250; Tue, 20 Sep 2005 22:06:51 +0200 Date: Tue, 20 Sep 2005 20:07:00 -0000 From: Jakub Jelinek To: Ulrich Drepper , Roland McGrath Cc: Glibc hackers Subject: [PATCH] Use fopen64 rather than fopen for nscd log file Message-ID: <20050920200651.GN15708@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-SW-Source: 2005-09/txt/msg00028.txt.bz2 Hi! Some users sometimes create awfully huge log files... 2005-09-20 Jakub Jelinek * 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