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;
|
return -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(de->d_name[de->d_namlen] != 0)
|
// Note: not all systems have d_namlen. Assume NUL-terminated.
|
||||||
sysfatal("bad readdir");
|
|
||||||
if(de->d_name[0]=='.' && de->d_name[1]==0)
|
if(de->d_name[0]=='.' && de->d_name[1]==0)
|
||||||
continue;
|
continue;
|
||||||
if(de->d_name[0]=='.' && de->d_name[1]=='.' && de->d_name[2]==0)
|
if(de->d_name[0]=='.' && de->d_name[1]=='.' && de->d_name[2]==0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue