mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
parent
587933c161
commit
c53ad837a7
1 changed files with 1 additions and 2 deletions
|
@ -318,8 +318,7 @@ dirreadmax(int fd, Dir **dp, int max)
|
|||
return -1;
|
||||
break;
|
||||
}
|
||||
if(de->d_name[de->d_namlen] != 0)
|
||||
sysfatal("bad readdir");
|
||||
// Note: not all systems have d_namlen. Assume NUL-terminated.
|
||||
if(de->d_name[0]=='.' && de->d_name[1]==0)
|
||||
continue;
|
||||
if(de->d_name[0]=='.' && de->d_name[1]=='.' && de->d_name[2]==0)
|
||||
|
|
Loading…
Reference in a new issue