fix errno handling in scandir:
authorRich Felker <dalias@aerifal.cx>
Mon, 11 Apr 2011 05:58:14 +0000 (01:58 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 11 Apr 2011 05:58:14 +0000 (01:58 -0400)
commitdae17a1aaf25d8333e729173d86659066607d87d
tree647bba2d6389494ef23af5b735c967f1feca23b2
parent52458cfa8c79a9eacb81e151e15cdeff04b75d37
fix errno handling in scandir:

1. saved errno was not being restored, illegally clearing errno to 0.
2. no need to backup and save errno around free; it will not touch
except perhaps when the program has already invoked UB...
src/dirent/scandir.c