develooper Front page | perl.perl5.porters | Postings from July 2019

[perl #134221] open(FH, "+>>", undef) doesn't set O_APPEND

Thread Previous
From:
Tony Cook via RT
Date:
July 16, 2019 06:23
Subject:
[perl #134221] open(FH, "+>>", undef) doesn't set O_APPEND
Message ID:
rt-4.0.24-30056-1563258192-857.134221-15-0@perl.org
On Tue, 02 Jul 2019 18:34:26 -0700, e@80x24.org wrote:
> Tony Cook via RT <perlbug-followup@perl.org> wrote:
> > On Tue, 02 Jul 2019 00:18:35 -0700, e@80x24.org wrote:
> > > However, there's a regression:
> > > 
> > > "+>" (which previously worked and is documented) now fails
> > > completely:
> > > 
> > >   ./perl -e 'open(my $fh, "+>", undef) or die "open: $!"'
> > > 
> > > I couldn't even find the syscall being made via truss.
> > 
> > Here's an updated patch.
> 
> Looks good and confirmed both "+>" and "+>>" via truss output on
> FreeBSD 11.2

Craig helped me out with the VMS support.

So:

ae73d7ec2329275a2dba4be24415743f884d9dfd append mode for POSIX-like systems
0424723402ef153af8ee44222315d9b6a818d1ba for Win32
74b421cc877e412c4eda06757396a1e19fc756ba and VMS now (sort of) uses the same mkostemp() code that POSIX-like systems do.

Tony


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

Thread Previous


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