From owner-freebsd-bugs Thu Jun 14 15: 0:20 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3989637B406 for ; Thu, 14 Jun 2001 15:00:16 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5EM0GK07187; Thu, 14 Jun 2001 15:00:16 -0700 (PDT) (envelope-from gnats) Date: Thu, 14 Jun 2001 15:00:16 -0700 (PDT) Message-Id: <200106142200.f5EM0GK07187@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Konstantinos Konstantinidis Subject: Re: bin/8060: install ignores the +X mode flag Reply-To: Konstantinos Konstantinidis Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/8060; it has been noted by GNATS. From: Konstantinos Konstantinidis 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message