develooper Front page | perl.perl6.language | Postings from November 2008

Re: S16: chown, chmod

Thread Previous | Thread Next
From:
Brandon S. Allbery KF8NH
Date:
November 22, 2008 00:39
Subject:
Re: S16: chown, chmod
Message ID:
F1CE9E38-7C22-480A-87E7-21D9A157963C@ece.cmu.edu
On 2008 Nov 21, at 13:20, Larry Wall wrote:
> On Fri, Nov 21, 2008 at 09:57:30AM -0800, dpuu wrote:
> : On Nov 21, 9:16 am, la...@wall.org (Larry Wall) wrote:
> : > Please feel free to whack on the spec
> : The definition of C<chown> includes the statement that it's not
> : available on most system unless you're superuser; and this can be
> : checked using a POSIX incantation. I was wondering if it would be
> : reasonable to provide this as a method on the chown function, so  
> that

This won't work; _PC_CHOWN_RESTRICTED is per filesystem.   
(_POSIX_CHOWN_RESTRICTED is global but insufficient.)

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH



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