Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Date: Fri, 2 Nov 2001 21:43:24 -0500 From: Christopher Faylor To: cygwin-apps AT cygwin DOT com Subject: Re: patches to vendor source trees - discussion Message-ID: <20011102214324.K31918@redhat.com> Reply-To: cygwin-apps AT cygwin DOT com Mail-Followup-To: cygwin-apps AT cygwin DOT com References: <1004752145 DOT 521 DOT 38 DOT camel AT lifelesswks> <20011102210311 DOT D31918 AT redhat DOT com> <1004753755 DOT 520 DOT 55 DOT camel AT lifelesswks> <20011102212558 DOT F31918 AT redhat DOT com> <1004755024 DOT 520 DOT 61 DOT camel AT lifelesswks> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1004755024.520.61.camel@lifelesswks> User-Agent: Mutt/1.3.21i On Sat, Nov 03, 2001 at 01:37:03PM +1100, Robert Collins wrote: >On Sat, 2001-11-03 at 13:25, Christopher Faylor wrote: >> On Sat, Nov 03, 2001 at 01:15:54PM +1100, Robert Collins wrote: >> >On Sat, 2001-11-03 at 13:03, Christopher Faylor wrote: >> >>Couldn't the patch remove itself? >> > >> >Not if you create the patch via diff! >> >> Why? The patch could patch itself into a zero length file and the file >> could be removed via "patch -E". > >To make the patch a zero length file, the entire contents need to be >listed with a - before each line right? > >so how long is a file that completely contains itself? Yep. You're right. If the patch was constructed from diff and if there was only one file, you couldn't have the patch delete itself. cgf