From owner-freebsd-stable Tue Oct 31 19:36:58 2000 Delivered-To: freebsd-stable@freebsd.org Received: from citusc17.usc.edu (citusc17.usc.edu [128.125.38.177]) by hub.freebsd.org (Postfix) with ESMTP id 369B037B479 for ; Tue, 31 Oct 2000 19:36:54 -0800 (PST) Received: (from kris@localhost) by citusc17.usc.edu (8.11.1/8.11.1) id eA13ch518634; Tue, 31 Oct 2000 19:38:43 -0800 (PST) (envelope-from kris) Date: Tue, 31 Oct 2000 19:38:42 -0800 From: Kris Kennaway To: Kresimir Kumericki Cc: freebsd-stable@FreeBSD.ORG Subject: Re: How to apply security patch? Message-ID: <20001031193842.A18592@citusc17.usc.edu> References: <20001031134300.A52302@phy.hr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001031134300.A52302@phy.hr>; from kkumer@phy.hr on Tue, Oct 31, 2000 at 01:43:00PM +0100 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --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