Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-01-09 20:15:44 +0300
committerCorinna Vinschen <corinna@vinschen.de>2003-01-09 20:15:44 +0300
commit93353aee63945ba333407a21f7d5c69eea58265f (patch)
treec3dfc179296c0de2d73aba1d56323f75b09e6237 /winsup/cygwin/fhandler_disk_file.cc
parent3eb27a4e9e4ee13b23c5d9a21e702d939f43f46a (diff)
* fhandler_disk_file.cc (num_entries): Return 2 as link count if
directory unreadable.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index 586c5a5e7..ea338ffc6 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -48,7 +48,7 @@ num_entries (const char *win32_name)
handle = FindFirstFileA (buf1, &buf);
if (handle == INVALID_HANDLE_VALUE)
- return 0;
+ return 2; /* 2 is the minimum number of links to a dir, so... */
count ++;
while (FindNextFileA (handle, &buf))
{