On Wed, Aug 18, 1999, Sheldon Hearn wrote:
> > green 1999/08/17 17:18:53 PDT
> >
> > Modified files:
> > bin/test test.c
> > Log:
> > The new test(1) did not use access() correctly. I don't know why, since
> > supposedly it's ksh-derived, and it's not broken in pdksh. I've added
> > a test for test running as root: if testing for -x, the file must be
> > mode & 0111 to get "success", rather than just existant.
> >
> > Reviewed by: chris
>
> What were you actually trying to fix, here? I didn't see any discussion
> of this on hackers, current or bugs, nor in response to my initial
> commit message.
He was "fixing" (though, as Bruce pointed out, it wasn't a
valid fix) test -x. Apparently, access(2) will return 'success'
on access(file, X_OK) if called by a program run by root. The
patch partly solves the problem, but the euid-vs-ruid problem
remains.
--
|Chris Costello <[EMAIL PROTECTED]>
|Disc space, the final frontier!
`----------------------------------
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message