This is the mail archive of the cygwin-patches 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]
Other format: [Raw text]

RE: [PATCH] fix unlink for Cygwin 1.5.25-15 -- unintended data loss with symbolic file links


On Monday, September 15, 2008 3:29 PM, Christopher Faylor wrote:
> On Mon, Sep 15, 2008 at 02:31:07PM -0700, Jason wrote:
> >Please consider the patch below for inclusion in the Cygwin 1.5 branch
which
> >corrects the deletion of symbolic link file types (Vista file reparse
> >points).
> >
> >The problem is that CreateFile will open the target and not the link.
See
> >the MSDN page
> >http://msdn.microsoft.com/en-us/library/aa365682(VS.85).aspx#CreateFile
for
> >a more detailed description of Vista's symbolic link handling.
>
> Sorry but we're not anticipating any new releases of Cygwin 1.5.x.
>
> cgf 

Okay, I thought I'd submit the trivial patch just in case someone else runs
into the problem.  The bug has very interesting side effects if someone does
a "rm -rf" of a directory which may contain such symbolic links.  Luckily I
had a backup.  I look forward to the 1.7 release!



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