1
0
mirror of https://github.com/golang/go synced 2024-11-22 17:35:19 -07:00

typo. this split-os building thing is frustrating.

R=rsc
OCL=24681
CL=24681
This commit is contained in:
Rob Pike 2009-02-09 11:25:47 -08:00
parent aba4c75408
commit a948fdd626

View File

@ -107,7 +107,7 @@ func Readdir(fd *FD, count int) (dirs []Dir, err *os.Error) {
dirs = dirs[0:len(dirs)+1]; dirs = dirs[0:len(dirs)+1];
filename := string(dirent.Name[0:dirent.Namlen]); filename := string(dirent.Name[0:dirent.Namlen]);
dirp, err := Stat(dirname + filename); dirp, err := Stat(dirname + filename);
if dir == nil || err != nil { if dirp == nil || err != nil {
dirs[len(dirs)-1].Name = filename; // rest will be zeroed out dirs[len(dirs)-1].Name = filename; // rest will be zeroed out
} else { } else {
dirs[len(dirs)-1] = *dirp; dirs[len(dirs)-1] = *dirp;