develooper Front page | perl.perl5.porters | Postings from May 2004

Re: [PATCH] Grammatical fixes and explanations in perlfunc.pod (sysopen)

Thread Previous | Thread Next
From:
Ronald J Kimball
Date:
May 31, 2004 09:15
Subject:
Re: [PATCH] Grammatical fixes and explanations in perlfunc.pod (sysopen)
Message ID:
20040531161508.GA40100@penkwe.pair.com
On Mon, May 31, 2004 at 09:33:51PM +1000, Paul Fenwick wrote:

> --- pod/perlfunc.pod.orig	Mon May 31 20:36:19 2004
> +++ pod/perlfunc.pod	Mon May 31 21:14:29 2004
> @@ -5672,10 +5672,14 @@
>  
>  In many systems the C<O_EXCL> flag is available for opening files in
>  exclusive mode.  This is B<not> locking: exclusiveness means here that
> -if the file already exists, sysopen() fails.  The C<O_EXCL> wins
> -C<O_TRUNC>.
> +if the file already exists, sysopen() fails.  C<O_EXCL> may not work
> +on network filesystems, and has no effect unless the C<O_CREAT> flag
> +is set as well.  Setting C<O_CREAT|O_EXCL> prevents symlinks from
> +being followed when creating files.

Setting C<O_CREAT|O_EXCL> when the path contains a symlink works fine for
me.

Ronald

Thread Previous | Thread Next


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