[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chown32() weirdness



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