diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1994-11-05 17:07:14 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1994-11-05 17:07:14 +0000 |
commit | 3b0beab69cf5df53921c685cbb2e79b4866c4000 (patch) | |
tree | b1a7175f869f802dcf0b6c16ff7e86cbb5c3e4f9 /bin | |
parent | fe3e9e3cb9f64e0fc33e5ee3f2b8a88c5358355a (diff) | |
download | src-3b0beab69cf5df53921c685cbb2e79b4866c4000.tar.gz src-3b0beab69cf5df53921c685cbb2e79b4866c4000.zip |
test produce wrong results for superuser, i.e. tells
that file is unreadable when it is readable infact.
Notes
Notes:
svn path=/head/; revision=4166
Diffstat (limited to 'bin')
-rw-r--r-- | bin/test/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/test/test.c b/bin/test/test.c index c13d0c6a99a5..e925c1b3baad 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: test.c,v 1.4 1994/09/24 02:59:15 davidg Exp $ */ #ifndef lint @@ -348,7 +348,7 @@ expr_operator(op, sp, fs) goto permission; case ISEXEC: i = S_IXOTH; -permission: if (fs->stat.st_uid == geteuid()) +permission: if (geteuid() == 0 || fs->stat.st_uid == geteuid()) i <<= 6; else if (fs->stat.st_gid == getegid()) i <<= 3; |