* 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>
|
2003-01-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* security.cc (get_nt_attribute): Always return -1 when read_sd()
|
* 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);
|
handle = FindFirstFileA (buf1, &buf);
|
||||||
|
|
||||||
if (handle == INVALID_HANDLE_VALUE)
|
if (handle == INVALID_HANDLE_VALUE)
|
||||||
return 0;
|
return 2; /* 2 is the minimum number of links to a dir, so... */
|
||||||
count ++;
|
count ++;
|
||||||
while (FindNextFileA (handle, &buf))
|
while (FindNextFileA (handle, &buf))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user