mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 20:15:24 +08:00
Cygwin: fhandler_netdrive: don't enumerate NFS shares on WebDAV server
WebDAV resources trigger the code trying to enumerate NFS shares on the server. Disable this by checking for an at-sign as well. Fixes: 8cebbb2b42bf ("Cygwin: fhandler_netdrive::exists: handle WebDAV URLs") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
5f9cc2a6ab
commit
7124d1c23d
@ -393,8 +393,8 @@ create_thread_and_wait (DIR *dir)
|
|||||||
/* For shares, use WNet functions. */
|
/* For shares, use WNet functions. */
|
||||||
|
|
||||||
/* Try NFS first, if the name contains a dot (i. e., supposedly is a FQDN
|
/* Try NFS first, if the name contains a dot (i. e., supposedly is a FQDN
|
||||||
as used in NFS server enumeration). */
|
as used in NFS server enumeration) but no at-sign. */
|
||||||
if (strchr (dir->__d_dirname, '.'))
|
if (strchr (dir->__d_dirname, '.') && !strchr (dir->__d_dirname + 2, '@'))
|
||||||
{
|
{
|
||||||
ndi.provider = WNNC_NET_MS_NFS;
|
ndi.provider = WNNC_NET_MS_NFS;
|
||||||
ndi.sem = CreateSemaphore (&sec_none_nih, 0, 2, NULL);
|
ndi.sem = CreateSemaphore (&sec_none_nih, 0, 2, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user