chown replacing setuid bit

Clint Adams <[email protected]>
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
src/chown-core.c will replace setuid bits after the syscall has
stripped them.  It is prefaced with a comment:

              /* The change succeeded.  On some systems, the chown function
                 resets the `special' permission bits.  When run by a
                 `privileged' user, this program must ensure that at least
                 the set-uid and set-group ones are still set.  */

This can lead to some unpleasant race conditions.  Please consider
implementing an option to disable the chmod() which does this.
Ideally it would be chown's default behavior.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.