From nobody@FreeBSD.org  Wed May  4 14:19:33 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 38AA4106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  4 May 2011 14:19:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 28EA38FC20
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  4 May 2011 14:19:33 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p44EJWjp093982
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 4 May 2011 14:19:32 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p44EJW0Q093981;
	Wed, 4 May 2011 14:19:32 GMT
	(envelope-from nobody)
Message-Id: <201105041419.p44EJW0Q093981@red.freebsd.org>
Date: Wed, 4 May 2011 14:19:32 GMT
From: "NARUSE, Yui" <naruse@airemix.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: manpage should describe that chmod kicks +t for file
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         156815
>Category:       docs
>Synopsis:       chmod(1): manpage should describe that chmod kicks +t for file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 04 14:20:08 UTC 2011
>Closed-Date:    
>Last-Modified:  Wed May 04 19:48:05 UTC 2011
>Originator:     NARUSE, Yui
>Release:        8.2
>Organization:
>Environment:
FreeBSD windy.airemix.net 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
FreeBSD's chmod(1) and chmod(2) can't set sticky bit to non-directories not in jail. (ufschmod in sys/ufs/ufs/ufs_vnops.c)
But manpages doesn't describe about it.
>How-To-Repeat:
% touch /tmp/a                                                                     % chmod +t /tmp/a                                                                  chmod: /tmp/a: Inappropriate file type or format
>Fix:


>Release-Note:
>Audit-Trail:

From: Sergey Kandaurov <pluknet@gmail.com>
To: bug-followup@FreeBSD.org, naruse@airemix.jp
Cc:  
Subject: Re: docs/156815: manpage should describe that chmod kicks t for file
Date: Wed, 4 May 2011 18:57:03 +0400

 From 4.4BSD as a historical reference:
 
      The ISVTX (the sticky bit) indicates to the system which executable files
      are shareable (the default) and the system maintains the program text of
      the files in the swap area. The sticky bit may only be set by the super
      user on shareable executable files.
 
 Though, it has long obsolete since then.
 
 -- 
 wbr,
 pluknet
>Unformatted:
