←back to thread

80 points Deeg9rie9usi | 1 comments | | HN request time: 0.206s | source
Show context
JonChesterfield ◴[] No.44382886[source]
The response to the bug on the mailing list is disheartening. Report goes "set errno=0 so your error message makes sense". Didn't get a thanks, fixed.

Instead there's objections on the basis "filesystems shouldn't work like that".

replies(2): >>44383395 #>>44392606 #
1. BenjiWiebe ◴[] No.44392606[source]
Especially when the man page for readdir() mentions that you should set errno=0 if you want to distinguish errors from end-of-stream.

Not like setting errno=0 before calling readdir() is a novel idea...