develooper Front page | perl.perl5.porters | Postings from October 2014

[perl #122703] chmod() doesn't populate a local()ed $!

From:
Tony Cook via RT
Date:
October 22, 2014 05:35
Subject:
[perl #122703] chmod() doesn't populate a local()ed $!
Message ID:
rt-4.0.18-13573-1413956135-434.122703-15-0@perl.org
On Thu Sep 04 14:14:31 2014, LeonT wrote:
> Yes, it does not set $! if $fh is a closed filehandle (because it doesn't
> do any syscall). This is probably a bug, the attached patch fixes this.

I've applied essentially this patch, but with some tests as 8334cae656b5c7fd6ff3536633897332d0ee089a.

I didn't notice yours until after I'd written mine.

Tony

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



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