Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 1998 09:06:38 +0930
From:      Greg Lehey <grog@lemis.com>
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?=
Message-ID:  <19980515090638.J320@freebie.lemis.com>
In-Reply-To: <199805141240.OAA01702@i-p-d.com>; from chem@i-p-d.com on Thu, May 14, 1998 at 02:39:41PM %2B0000
References:  <199805141135.NAA01445@i-p-d.com> <H000057c01591802@MHS> <199805141240.OAA01702@i-p-d.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <paths.h>
> 
> -#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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980515090638.J320>