Date: Wed, 9 Jun 1999 23:06:50 +0100 From: Mark Ovens <markov@globalnet.co.uk> To: Chris Singer <csinger@workfire.com> Cc: Scott Langevin <slangevi@csc.uvic.ca>, BSD Help <freebsd-questions@FreeBSD.ORG> Subject: Re: Does anyone know what to do to apply a patch?? Message-ID: <19990609230649.J261@marder-1> In-Reply-To: <000301beb2c4$0012f890$0ea78e8b@maverick.workfire.com>; from Chris Singer on Wed, Jun 09, 1999 at 03:04:09PM -0700 References: <000301beb2c4$0012f890$0ea78e8b@maverick.workfire.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 09, 1999 at 03:04:09PM -0700, Chris Singer wrote: > I need to apply a patch to a source file and I'm wondering how you do it. > The purpose of this is to fix a TCP bug with small packets. Here is the > relevant info that I have been given: > > Apply the following patch to /usr/src/sys/kern/uipc_socket.c > > RCS file: /home/ncvs/src/sys/kern/uipc_socket.c,v > retrieving revision 1.40 > retrieving revision 1.41 > diff -p -u -r1.40 -r1.41 > --- src/sys/kern/uipc_socket.c 1998/05/15 20:11:30 1.40 > +++ /home/ncvs/src/sys/kern/uipc_socket.c 1998/07/06 19:27:14 1.41 > @@ -491,6 +491,7 @@ restart: > mlen = MCLBYTES; > len = min(min(mlen, resid), space); > }else{ > + atomic=1; > nopages; > len = min(min(mlen, resid), space); > /* > > > > That is all the info I have. I don't follow what it means? It doesn't much > look like C code until the last 5 or 6 lines. I tried entering them in as > commands and I just get a bad command back. Have any ideas of how to > implement this? THanks for taking the time to hear my dilema. > The file is the output from diff(1)'ing the original and modified files. Use patch(1). Usually ``patch < <patchfile>'' is aal that's required, but check the manpage for full details. > Chris Singer > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://www.users.globalnet.co.uk/~markov _______________________________________________________________ Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK CAD/CAM solutions for Sheetmetal Working Industry mailto:marko@uk.radan.com http://www.radan.com 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?19990609230649.J261>