[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: chown32() weirdness
Christoph Hellwig wrote:
>On Mon, Feb 18, 2002 at 11:02:51AM -0600, Eric Sandeen wrote:
>
>>Ok, I guess this is a difference between Irix and Linux...
>>
>
>There are two possible chown semantics. Linux has a restricted chown
>by default that only allows root to change owners and thus defines
>_POSIX_CHOWN_RESTRICTED.
>
>Some other systems (dunno about IRIX) allow both variants, depending
>on configuration. Then pathconf() with _PC_CHOWN_RESTRICTED is used to
>find out which semantics apply to a specific filename.
>
> Christoph
>
Irix does support both, and by removing the double permissions check I
made xfs
fall back to the default Irix behavior. Looks like Eric has around found
the switch
inside xfs to make this work the linux way.
Steve