[newlib-cygwin] Don't generate Windows native symlinks targeting Cygwin-only targets

Eric Blake eblake@redhat.com
Wed Nov 18 18:33:00 GMT 2015


On 11/18/2015 11:12 AM, Corinna Vinschen wrote:
> https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8cdd7bad219ba2657e381bd0d716594c50a6ef62
> 
> commit 8cdd7bad219ba2657e381bd0d716594c50a6ef62
> Author: Corinna Vinschen <corinna@vinschen.de>
> Date:   Wed Nov 18 19:12:37 2015 +0100
> 
>     Don't generate Windows native symlinks targeting Cygwin-only targets
>     
>     	* path.cc (symlink_native): Don't generate native symlink targeting
>     	Cygwin special file.  Inform the caller.
>     	(symlink_worker): Don;t bail out in WSYM_nativestrict case if the

s/Don;t/Don't/


> +++ b/winsup/cygwin/path.cc
> @@ -1700,6 +1700,11 @@ symlink_native (const char *oldpath, path_conv &win32_newpath)
>        SetLastError (ERROR_FILE_NOT_FOUND);
>        return -1;
>      }
> +  /* Don't allow native symlinks to Cygwin special files.  However, the
> +     caller shoud know because this case shouldn't be covered by the

s/shoud/should/

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin-developers/attachments/20151118/1695e2ae/attachment.sig>


More information about the Cygwin-developers mailing list