From owner-freebsd-questions Tue May 12 17:02:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA29920 for freebsd-questions-outgoing; Tue, 12 May 1998 17:02:35 -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 RAA29759 for ; Tue, 12 May 1998 17:00:53 -0700 (PDT) (envelope-from grog@lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id JAA29737; Wed, 13 May 1998 09:30:44 +0930 (CST) (envelope-from grog) Message-ID: <19980513093044.U20153@freebie.lemis.com> Date: Wed, 13 May 1998 09:30:44 +0930 From: Greg Lehey To: geoffr@globalserve.net, questions@FreeBSD.ORG Subject: Re: How do I Apply a Patch? References: <3558B23D.CB36CF95@globalserve.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <3558B23D.CB36CF95@globalserve.net>; from Geoffrey Robinson on Tue, May 12, 1998 at 04:34:06PM -0400 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 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 12 May 1998 at 16:34:06 -0400, Geoffrey Robinson wrote: > I've gotten a number of patches over the last few months that I would like > to apply to my server for security reasons. How is this done? Dose the full > FreeBSD source code have to be on the system? You certainly need the source code that you're going to patch. There's a man page which explains how to use it. Typically, change to the directory you want (for the base system, it's /usr/src) and enter # patch -p0 < patchfile 2>&1 | tee patch.log Make sure to keep a log. The stuff flies past too fast to notice any errors, and you often get some kind of error. See "Porting UNIX Software" (O'Reilly) for a more detailled description. Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message