Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion File stat info
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Larry Wall  
View profile  
 More options Apr 28 2004, 4:20 pm
Newsgroups: perl.perl6.internals
From: la...@wall.org (Larry Wall)
Date: Wed, 28 Apr 2004 13:20:19 -0700
Local: Wed, Apr 28 2004 4:20 pm
Subject: Re: File stat info
On Wed, Apr 28, 2004 at 10:49:50PM +0300, Jarkko Hietaniemi wrote:

: > Yech, good point. I'm not even sure you can do any sort of sane
: > abstraction there.
: >
: > In that case, are we better off chopping it out entirely and leaving
: > it to library code, or making it a simple yes/no indicator that there
: > are some? (Chopping it out's probably the best thing)
:
: Chopping off sounds like less coding :-)

On top of which, ACLs suffer the same illness of any stat-based
checking, insofar as checks against them are only an approximation
to reality, potentially full of race conditions.  It's really the OS
that's going to do the ACL checking, and it'll do it when you do the
actual operation, not the stat() call.  Arguably a "correct" way to
program is to ignore stat-like stuff entirely and just try to do the
thing you want to do, and be prepared for the OS to reject it--which
you should have been prepared for anyway...

(Of course, fstat() does help with some of the race conditions by
intentionally "losing" the race, as it were.)

Larry


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.