Explorar el Código

Looks like we lost clearing errno

Eric Andersen hace 25 años
padre
commit
7064bb231f
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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;
 }