Browse Source

Looks like we lost clearing errno

Eric Andersen 24 năm trước cách đây
mục cha
commit
7064bb231f
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;
 }