Hi, I'm testing out your project (which looks very
nice, btw), and I
encountered a minor bug. Hopefully this is the right
place to submit this...
Here's the problem... If I run a script like the
following as root:
if [ -x /tmp/filename ]; then echo executable; fi
It will always echo "executable" regardless of whether
is actually executable or not. However, this problem
only appears if
I do this as root. If I do it as a normal user,
there's no problem.
Running 'text -x' has similar results. A random sample
of other test
options seem to be correct (as compared to a
such as -L, -r, -w, -d.
According to strace, 'text -x' makes use of an fstat64
a stat64 call.
I'm using stock kernel 2.4.20 with your
a RedHat 7.3 system. And I am using a blank
so everything should be defaulting to standard Unix
'ls' program does report correct permissions and
execute status on all
- Danny Sung <email@example.com>
Log in to post a comment.