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

Jason cygwin@jason-gouger.com
Mon Sep 15 23:03:00 GMT 2008

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
> >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.
> >the MSDN page
> >http://msdn.microsoft.com/en-us/library/aa365682(VS.85).aspx#CreateFile
> >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!

More information about the Cygwin-patches mailing list