This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: patches to vendor source trees - discussion


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]