From owner-freebsd-questions Thu May 14 16:37:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA08903 for freebsd-questions-outgoing; Thu, 14 May 1998 16:37:36 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA08887 for ; Thu, 14 May 1998 16:37:18 -0700 (PDT) (envelope-from grog@lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id JAA09181; Fri, 15 May 1998 09:06:39 +0930 (CST) (envelope-from grog) Message-ID: <19980515090638.J320@freebie.lemis.com> Date: Fri, 15 May 1998 09:06:38 +0930 From: Greg Lehey To: chem@i-p-d.com, THIERRY.HERBELOT@telspace.alcatel.fr Cc: questions@FreeBSD.ORG Subject: Re: =?iso-8859-1?Q?R=E9p_:_how_do_I_apply_a_fix?= References: <199805141135.NAA01445@i-p-d.com> <199805141240.OAA01702@i-p-d.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199805141240.OAA01702@i-p-d.com>; from chem@i-p-d.com on Thu, May 14, 1998 at 02:39:41PM +0000 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 X-Mutt-References: <199805141240.OAA01702@i-p-d.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 14 May 1998 at 14:39:41 +0000, chem@i-p-d.com wrote: >> From: THIERRY.HERBELOT@telspace.alcatel.fr >> Date: Thu, 14 May 98 14:13:16 +0200 >>> >>> I have to apply this fix, but I dont have a clue what to do. >>> ^^^^ >>> I have only been working with UNIX/FreeBSD for a few months now. I >>> have been searching the archives and the handbook for a step-by-step >>> tutorial, but havent found it. (doesnt mean it isnt there BTW) >>> >>> Can anybody help me out, telling me what to do on a beginnerslevel or >>> point me in the right direction? This morning the puter had to be >>> rebooted because of the problem :(. >> >> which fix ? > > The fix for mail.local filling up my / filesystem with tempfiles: > > (quote Greg): > mail.local copies mail messages into /tmp, and a couple of occasions > people have received really enormous ones which have caused the root > file system to overflow. I've entered a problem report, but here are > some solutions: > > 1. Place /tmp on a file system with *much* more free space. > > 2. Use ftp://ftp.lemis.com/pub/mail.local, which implements the fix > in point (3). > > 3. Apply this fix to /usr/src/libexec/mail.local/pathnames.h and do a > 'make install' in that directory. > > --- pathnames.h 1994/05/27 12:39:19 1.1.1.1 > +++ pathnames.h 1997/09/09 01:42:38 > @@ -34,4 +34,4 @@ > */ > #include > > -#define _PATH_LOCTMP "/tmp/local.XXXXXX" > +#define _PATH_LOCTMP "/var/tmp/local.XXXXXX" > > end quote > > I just don't know what to do now..... Ah. It looks like I missed out the vital step. Sorry about that. The program you want is 'patch'. Do this: 1. Put the patch on the machine somewhere. In this example, it's i in /tmp/patch. 2. Enter this: # cd /usr/src/libexec/mail.local # patch < /tmp/patch As Thierry observes, this particular patch is simple enough that you could do it by hand, but in general it's better to use patch. Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message