Date: Tue, 31 Oct 2000 19:38:42 -0800 From: Kris Kennaway <kris@FreeBSD.ORG> To: Kresimir Kumericki <kkumer@phy.hr> Cc: freebsd-stable@FreeBSD.ORG Subject: Re: How to apply security patch? Message-ID: <20001031193842.A18592@citusc17.usc.edu> In-Reply-To: <20001031134300.A52302@phy.hr>; from kkumer@phy.hr on Tue, Oct 31, 2000 at 01:43:00PM %2B0100 References: <20001031134300.A52302@phy.hr>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Tue, Oct 31, 2000 at 01:43:00PM +0100, Kresimir Kumericki wrote: > > It seems that I don't understand patching. For example, I tried the > recent patch for tcpdump. I downloaded the tcpdump-4.x.patch and > saved it to /root/patches. Then I followed instructions in security > advisory: > > # cd /usr/src/contrib/tcpdump > # patch -p < ~/patches/tcpdump-4.x.patch > patch: option requires an argument -- p > patch: Try `patch --help' for more information. > > I read 'man path' and find out that -p takes [strip-count] as an > argument, but it also claims it to be optional: > "setting -p or -p0 gives the entire pathname unmodified". > This seems to be in conflict with the above error message. > Anyway, looking at the patch file, I see that files there are > specified as "Index: addrtoname.c" so I guessed that strip-count=0 > is in order: No, patch -p is all you require, as long as you're using the system version of patch(1). If you have some other version installed, the command line arguments will obviously be different :-) > # patch -p0 < ~/patches/tcpdump-4.x.patch > patching file `addrtoname.c' > Reversed (or previously applied) patch detected! Assume -R? [n] Sounds like your system may already contain the fixes. If you are running -stable with sources obtained after the correction date for the problem (see the advisory) then it's already fixed. Kris [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjn/kEIACgkQWry0BWjoQKVCvQCfWmdP9wBHRMWpHL5Kv9bKbEh0 QdMAoIMuRcZIPiCaGE9qzbhHWO++9GnT =Z1SA -----END PGP SIGNATURE-----help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001031193842.A18592>
