* fhandler_disk_file.cc (num_entries): Return 2 as link count if

directory unreadable.
This commit is contained in:
Corinna Vinschen 2003-01-09 17:15:44 +00:00
parent 3eb27a4e9e
commit 93353aee63
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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()

View File

@ -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))
{