On 07/09/2013 03:46 AM, Vladimir Marek wrote:
> Right. On the other hand, doing always chmod before chown on Solaris
> would also work, if I understand things correctly.

But chown sometimes fiddles with setuid and setgid bits, and when it
does that, that would introduce a bug.

> Sure. It's detectable by pathconf(2) syscall, looking for
> _PC_CHOWN_RESTRICTED. If you will consider such a change I'm more than
> happy to work on the implementation.

That sounds like the right way to go.  Of course systems lacking
_PC_CHOWN_RESTRICTED could simply behave as now.  If the fix is
trivial (less than 10 lines) please just submit it.  If not,
please let me know, and I'll send you the copyright paperwork
form.

Reply via email to