chown(2) clears S_ISUID and S_ISGID, even when chown is
authorErik Andersen <andersen@codepoet.org>
Mon, 27 Dec 1999 23:48:33 +0000 (23:48 -0000)
committerErik Andersen <andersen@codepoet.org>
Mon, 27 Dec 1999 23:48:33 +0000 (23:48 -0000)
commit98f67e35d82e19f7a5e58551b5dd8feb121229b9
tree5ddf65224b19b141783561b13a7c0dc35b6dda12
parent00417a38c10f1f5685013d16ad4fb782aa2deddb
chown(2) clears S_ISUID and S_ISGID, even when chown is
called as root.  Changed ordering of chown and chmod so
SGID and SUID file permissions don't get munged.
 -Erik
archival/tar.c
tar.c