mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
Cygwin: //tsclient: allow to enumerate shares
The //tsclient provider is WNNC_NET_TERMSRV. Fixes: 7db1c6fc4e2a ("Cygwin: //server: revert to using WNet and support NFS shares") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
7db1c6fc4e
commit
cc74a38d4a
@ -394,8 +394,12 @@ create_thread_and_wait (DIR *dir)
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* Eventually, try SMB via WNet for share enumeration. */
|
||||
ndi.provider = WNNC_NET_LANMAN;
|
||||
if (!strcmp (dir->__d_dirname + 2, "tsclient"))
|
||||
ndi.provider = WNNC_NET_TERMSRV;
|
||||
else
|
||||
ndi.provider = WNNC_NET_LANMAN;
|
||||
ndi.sem = CreateSemaphore (&sec_none_nih, 0, 2, NULL);
|
||||
thr = new cygthread (thread_netdrive_wnet, &ndi, "netdrive_smb");
|
||||
if (thr->detach (ndi.sem))
|
||||
|
Loading…
x
Reference in New Issue
Block a user