Browse Source

Looks like we lost clearing errno

Eric Andersen 24 years ago
parent
commit
7064bb231f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/misc/dirent/readdir.c

+ 2 - 0
libc/misc/dirent/readdir.c

@@ -55,5 +55,7 @@ struct dirent *readdir(DIR * dir)
 	/* We have to save the next offset here. */
 	dir->dd_nextoff = de->d_off;
 
+	__set_errno(0);
+
 	return de;
 }