Eric Blake
2015-11-18 18:33:08 UTC
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8cdd7bad219ba2657e381bd0d716594c50a6ef62
commit 8cdd7bad219ba2657e381bd0d716594c50a6ef62
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/commit 8cdd7bad219ba2657e381bd0d716594c50a6ef62
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
+++ 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/@@ -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
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org