zsh-workers
 help / color / mirror / code / Atom feed
* [[ -x file ]]
@ 1997-05-11 17:51 Zefram
  1997-05-12  1:04 ` Zoltan Hidvegi
  0 siblings, 1 reply; 2+ messages in thread
From: Zefram @ 1997-05-11 17:51 UTC (permalink / raw)
  To: zsh-workers

The ChangeLog for 3.1.2-test1:
#	* Src/cond.c: [[ -x file ]] does stat for privileged users

I think this is a bad idea.  access(, X_OK) is the right way to test for
executability.  The new test gets it wrong over NFS with root squash,
and on directories with no execute bits set (which *are* executable to
the super-user).  Furthermore, with POSIX.1e capabilities, it is one
specific capability (well, two, CAP_DAC_READ_SEARCH for directories and
CAP_DAC_EXECUTE for files) that overrides normal DAC, whereas the new
code tests for *any* capability being set.

What was the reason for this change?

-zefram


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-05-12  2:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-05-11 17:51 [[ -x file ]] Zefram
1997-05-12  1:04 ` Zoltan Hidvegi

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).