NON-SOURCE POSTINGS CONSIDERED HARMFUL!

Maarten Litmaath maart at cs.vu.nl
Tue Jan 29 05:59:07 AEST 1991


In article <2856 at charon.cwi.nl>,
	dik at cwi.nl (Dik T. Winter) writes:
)[...]
) >     test -f "$j/$i" && echo -n "$j/$i "

As I noted before this will present /etc/passwd as `executable'.
Adding a `test -x' will _not_ suffice, because `test' invokes access(2)
to test executability, and the answers this system call gives _cannot_
be trusted if the real uid is 0 or if it differs from the effective uid.

How does Perl implement `-x', Tom?
--
kinnersley at kuhub.cc.ukans.edu (Bill Kinnersley):
	"Do phonograph turntables turn the other way in Australia?"
gjh at krebs.acc.Virginia.EDU (Galen J. Hekhuis):
	"How do you think satanic messages were discovered on records?"



More information about the Alt.sources.d mailing list