mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +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;
|
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…
Reference in a new issue