The manual page chmod(2) states about the chmod() system call:
If mode ISVTX (the sticky bit) is set on a file, it is ignored.
However, attempting to set S_ISVTX on a plain file, the system call
fails with EFTYPE unless the user is the super user in which case it
succeeds in setting the S_ISVTX bit. The same behaviour occurs on
FreeBSD. It is however not documented on OpenBSD. I consider this
to be a documentation bug. Please fix the documentation.
Yours sincerely,
Robert Clausecker
--
() ascii ribbon campaign - for an 8-bit clean world
/\ - against html email - against proprietary attachments