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>
next in thread | previous in thread | raw e-mail | index | archive | help
--UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 31, 2000 at 01:43:00PM +0100, Kresimir Kumericki wrote: >=20 > 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: >=20 > # 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. >=20 > 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=3D0 > 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 --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature Content-Disposition: inline -----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----- --UlVJffcvxoiEqYs2-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001031193842.A18592>