native symlink

Jeffrey Altman jaltman@openafs.org
Thu Apr 11 21:55:00 GMT 2013


Corinna,

Sorry for the delay in testing but I can now confirm that this patch
corrects the behavior in which the wrong status information was being
used.

Jeffrey Altman

On 4/3/2013 4:46 PM, Corinna Vinschen wrote:
> You're set up to build Cygwin yourself, right?  Can you please try the
> below patch?
> 
> 
> Thanks,
> Corinna
> 
> 
> Index: path.cc
> ===================================================================
> RCS file: /cvs/src/src/winsup/cygwin/path.cc,v
> retrieving revision 1.672
> diff -u -p -r1.672 path.cc
> --- path.cc	3 Apr 2013 11:20:36 -0000	1.672
> +++ path.cc	3 Apr 2013 20:46:08 -0000
> @@ -2668,7 +2668,14 @@ restart:
>  		 to the volumes root dir. */
>  	      pflags &= ~PC_KEEP_HANDLE;
>  	    }
> -	  else if (res)
> +	  else if (!res)
> +	    {
> +	      /* Make sure the open handle is not used in later stat calls.
> +		 We didn't recognize the reparse point type, so let the
> +		 OS handle this the default way. */
> +	      pflags &= ~PC_KEEP_HANDLE;
> +	    }
> +	  else
>  	    {
>  	      /* A symlink is never a directory. */
>  	      conv_hdl.fnoi ()->FileAttributes &= ~FILE_ATTRIBUTE_DIRECTORY;
> 



More information about the Cygwin-developers mailing list