[perl #118651] don't overwrite $! in readdir()
authorTony Cook <tony@develop-help.com>
Thu, 12 Dec 2013 05:22:06 +0000 (16:22 +1100)
committerTony Cook <tony@develop-help.com>
Wed, 18 Dec 2013 02:42:53 +0000 (13:42 +1100)
commitee71f1d151acd0a4c10ebcec28f0798178529847
tree4be0e61b90cc8e3204ea1fc66083f25ec3fee819
parent6b0ff4b4f2542a206738f2f065066e9bf895cbf4
[perl #118651] don't overwrite $! in readdir()

POSIX expects readdir() to leave errno alone when it reaches end of
directory without an error so that case can be detected.  Do the same
in perl.
pp_sys.c
t/op/readdir.t