diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-01-09 17:15:44 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-01-09 17:15:44 +0000 |
commit | 93353aee63945ba333407a21f7d5c69eea58265f (patch) | |
tree | c3dfc179296c0de2d73aba1d56323f75b09e6237 | |
parent | 3eb27a4e9e4ee13b23c5d9a21e702d939f43f46a (diff) | |
download | newlib-93353aee63945ba333407a21f7d5c69eea58265f.zip newlib-93353aee63945ba333407a21f7d5c69eea58265f.tar.gz newlib-93353aee63945ba333407a21f7d5c69eea58265f.tar.bz2 |
* fhandler_disk_file.cc (num_entries): Return 2 as link count if
directory unreadable.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 93b993c..a42aeb4 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2003-01-09 Corinna Vinschen <corinna@vinschen.de> + * fhandler_disk_file.cc (num_entries): Return 2 as link count if + directory unreadable. + +2003-01-09 Corinna Vinschen <corinna@vinschen.de> + * security.cc (get_nt_attribute): Always return -1 when read_sd() fails. (get_file_attribute): Set permissions to 0 and owner/group to -1 diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 586c5a5..ea338ff 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)) { |