From dougdougdougdoug@dt053nb4.san.rr.com  Sat Sep 26 17:05:12 1998
Received: from dt053nb4.san.rr.com (dt053nb4.san.rr.com [204.210.34.180])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA07958
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Sep 1998 17:05:11 -0700 (PDT)
          (envelope-from dougdougdougdoug@dt053nb4.san.rr.com)
Received: (from root@localhost)
	by dt053nb4.san.rr.com (8.8.8/8.8.8) id RAA09937;
	Sat, 26 Sep 1998 17:05:03 -0700 (PDT)
	(envelope-from dougdougdougdoug)
Message-Id: <199809270005.RAA09937@dt053nb4.san.rr.com>
Date: Sat, 26 Sep 1998 17:05:03 -0700 (PDT)
From: Studded@dal.net
Reply-To: Studded@dal.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: install ignores the +X mode flag
X-Send-Pr-Version: 3.2

>Number:         8060
>Category:       bin
>Synopsis:       install ignores the +X mode flag
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 26 17:10:00 PDT 1998
>Closed-Date:    Thu Jun 14 21:54:20 PDT 2001
>Last-Modified:  Thu Jun 14 21:56:42 PDT 2001
>Originator:     Doug
>Release:        FreeBSD 2.2.7-STABLE-0925 i386
>Organization:
AAAG
>Environment:

	-Stable definitely, probably -Current too. 

>Description:

	The man page for install says that it accepts symbolic mode flags. Start
with a file having perms of 777. Using the following command:

install -m u+rw,g+r,+X,o= test-file test-directory

should install test-file with perms of rwxr-x--- (750) but instead installs it with
rw-r----- (640). The identical arguments to chmod perform as expected. 

>How-To-Repeat:

	See above.

>Fix:
	
	Unknown. 
>Release-Note:
>Audit-Trail:

From: Konstantinos Konstantinidis <kkonstan@duth.gr>
To: freebsd-gnats-submit@FreeBSD.org, Studded@dal.net
Cc:  
Subject: Re: bin/8060: install ignores the +X mode flag
Date: Fri, 15 Jun 2001 00:56:04 +0300

 Hello,
 
 This is not a bug, it's a feature; install creates a file and either
 sets permissions to 0755, or if -m is specified sets the permissions
 to whatever was requested *relative to 0000*. All but the last point
 are explicitly mentioned in the man page, which reads:
 
 -m  Specify an alternate mode.  The default mode is set to rwxr-xr-x
     (0755).  The specified mode may be either an octal or symbolic
     value; see chmod(1) for a description of possible mode values.
 
 Here's the relevant bit from chmod(1):
 
 +X  make a directory or file searchable/executable by everyone
     if it is already searchable/executable by anyone.
 
 It seems clear to me at least that since we're not modifying, but
 rather specifying permissions, there are no existing permissions
 to leave untouched, hence "+X" has no meaning whatsoever.
 
 Setting the permissions relative to those of the original file seems
 to me like a particularly bad idea, so there's nothing to fix.
 
 This PR can be closed
 
 --kkonstan
State-Changed-From-To: open->closed 
State-Changed-By: mikeh 
State-Changed-When: Thu Jun 14 21:54:20 PDT 2001 
State-Changed-Why:  
install creates a file, so -m is specified relative to 0000. Therefore 
+X is meaningless. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=8060 
>Unformatted:
