From ada@not-enough.bandwidth.org  Thu Jul 31 03:14:07 1997
Received: from polya.blah.org (slmel56p09.ozemail.com.au [203.108.203.185])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA25188
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 31 Jul 1997 03:14:05 -0700 (PDT)
Received: (from ada@localhost)
          by polya.blah.org (8.8.6/8.8.5) id UAA08494;
          Thu, 31 Jul 1997 20:14:02 +1000 (EST)
Message-Id: <199707311014.UAA08494@polya.blah.org>
Date: Thu, 31 Jul 1997 20:14:02 +1000 (EST)
From: Ada T Lim <ada@not-enough.bandwidth.org>
Reply-To: ada@not-enough.bandwidth.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: broken chmod(2),sticky(8) manpage
X-Send-Pr-Version: 3.2

>Number:         4198
>Category:       docs
>Synopsis:       broken chmod(2),sticky(8) manpage
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    steve
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 31 03:20:03 PDT 1997
>Closed-Date:    Sat Aug 16 17:15:06 PDT 1997
>Last-Modified:  Tue Nov 27 19:24:20 PST 2001
>Originator:     Ada T Lim
>Release:        FreeBSD 2.2-STABLE i386
>Organization:
>Environment:
>Description:
The chmod(2) manpage as well as the sticky(8) manpage both still refer to
the ability to create sticky-bit files.


     Only the super-user can set the sticky bit on a sharable executable file.

     (from sticky(8))

However, from /usr/src/sys/ufs/ufs/ufs_vnops.c:
                if (vp->v_type != VDIR && (mode & S_ISTXT))
	                        return (EFTYPE);

Also, S_ISTXT isn't adequately documented - both stat(2) and chmod(2)
refer to only S_ISVTX, not S_ISTXT

>How-To-Repeat:
>Fix:
Fix the manpages, as mentioned above :)


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sat Aug 16 17:15:06 PDT 1997 
State-Changed-Why:  
Supplied patches applied to revision 1.3 of sticky.8 
and revision 1.10 of chmod.2. 
>Unformatted:
