* fhandler_disk_file.cc (num_entries): Return 2 as link count if
directory unreadable.
This commit is contained in:
parent
3eb27a4e9e
commit
93353aee63
|
@ -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()
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue