libuv/src/win
Ben Noordhuis d03abfd400 win: work around sharepoint scandir bug
It has been reported that for SharePoint connections mapped as a drive,
uv_fs_scandir() returns "." and ".." entries when the expectation is
that they should be filtered out.

After some investigation it looks like the driver returns ".\0" and
"..\0" for those entries, that is, it includes the zero byte in the
filename length.  Rewrite the filter to catch those entries as well.

Fixes: https://github.com/nodejs/node/issues/4002
PR-URL: https://github.com/libuv/libuv/pull/636
Reviewed-By: Alexis Campailla <orangemocha@nodejs.org>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2016-04-15 17:11:53 +02:00
..
async.c unix, windows: removed unused status parameter 2014-03-17 21:42:36 +01:00
atomicops-inl.h windows: move uv_atomic_exchange_set to atomicops-inl.h 2012-08-14 01:04:43 +02:00
core.c win: wait for full timeout duration 2015-12-16 12:08:46 +01:00
dl.c win: use native APIs for UTF conversions 2016-03-18 12:40:57 -04:00
error.c win: map ERROR_BAD_PATHNAME to UV_ENOENT 2015-11-20 09:38:06 +01:00
fs-event.c win: fix var declaration to be C89 compliant 2016-04-10 10:00:54 -03:00
fs.c win: work around sharepoint scandir bug 2016-04-15 17:11:53 +02:00
getaddrinfo.c win: use native APIs for UTF conversions 2016-03-18 12:40:57 -04:00
getnameinfo.c win: remove unnecessary malloc.h #includes 2015-03-14 12:45:15 +01:00
handle-inl.h style: remove trailing whitespace 2014-06-24 20:18:10 +04:00
handle.c windows: improved handling of invalid FDs 2014-01-09 18:29:18 +01:00
internal.h unix,win: add uv_get_passwd() 2016-03-29 08:13:59 -04:00
loop-watcher.c windows: further simplify the code for timers 2014-09-10 09:52:00 +02:00
pipe.c win: use native APIs for UTF conversions 2016-03-18 12:40:57 -04:00
poll.c poll: add UV_DISCONNECT event 2016-03-15 23:39:49 +01:00
process-stdio.c win: remove UV_HANDLE_CONNECTED 2015-07-07 09:45:48 +02:00
process.c win: fix compilation 2015-06-03 00:22:19 +02:00
req-inl.h win: fix pipe blocking writes 2015-03-12 09:23:19 +01:00
req.c windows: inline a couple of inline request functions 2012-06-02 23:08:22 +02:00
signal.c windows: fix console signal handler refcount 2014-04-12 10:09:40 +02:00
snprintf.c win: fix compilation with VS < 2012 2015-10-01 00:41:41 +02:00
stream-inl.h win: name all anonymous structs and unions 2015-03-04 09:35:10 +01:00
stream.c win: name all anonymous structs and unions 2015-03-04 09:35:10 +01:00
tcp.c win: set accepted TCP sockets as non-inheritable 2015-08-18 15:14:50 +02:00
thread.c win: don't fetch function pointers to SRWLock APIs 2015-09-22 11:18:23 -04:00
timer.c win: wait for full timeout duration 2015-12-16 12:08:46 +01:00
tty.c win: remove unneeded condition 2016-03-05 08:12:42 +01:00
udp.c unix, win: add ability to create tcp/udp sockets early 2015-06-19 09:37:19 +02:00
util.c unix,win: add uv_get_passwd() 2016-03-29 08:13:59 -04:00
winapi.c fs: add uv_fs_realpath() 2015-12-05 11:32:58 +01:00
winapi.h fs: add uv_fs_realpath() 2015-12-05 11:32:58 +01:00
winsock.c Merge branch 'v0.10' into v1.x 2014-12-10 16:58:01 +01:00
winsock.h win: add missing IP_ADAPTER_UNICAST_ADDRESS_LH definition for MinGW 2014-11-06 19:20:32 -05:00