parent
587933c161
commit
c53ad837a7
@ -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 New Issue
Block a user