develooper Front page | perl.perl5.porters | Postings from December 2013

[perl #118651] readdir() should not set $! on the first "eof" read.

From:
Tony Cook via RT
Date:
December 18, 2013 02:58
Subject:
[perl #118651] readdir() should not set $! on the first "eof" read.
Message ID:
rt-4.0.18-20237-1387335479-1554.118651-15-0@perl.org
On Wed Dec 11 21:42:13 2013, tonyc wrote:
> On Thu Jun 27 15:17:07 2013, felipe@felipegasper.com wrote:
> > readdir() should not set $! on the first empty read when there's no
> > actual OS error; otherwise, it's impossible to check for errors.
> 
> The attached patch works for me.
> 
> It worked for me on Win32 too.
> 
> Currently a smoke-me branch.

Applied to blead as ee71f1d151acd0a4c10ebcec28f0798178529847.

Tony

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=118651



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About