Date: Thu, 14 Jun 2001 15:00:16 -0700 (PDT) From: Konstantinos Konstantinidis <kkonstan@duth.gr> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/8060: install ignores the +X mode flag Message-ID: <200106142200.f5EM0GK07187@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/8060; it has been noted by GNATS.
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
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106142200.f5EM0GK07187>
