summaryrefslogtreecommitdiffstats
path: root/bin/test
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>1999-08-24 06:10:14 +0000
committergreen <green@FreeBSD.org>1999-08-24 06:10:14 +0000
commit651feb3ee04330ce16cf68c58aa8ec8c04a05e79 (patch)
tree7b7a3d00c9637093502475bc131c1a020c1c5b48 /bin/test
parenta788068fedc532983e4f96648cdc0d5a8be33a2d (diff)
downloadFreeBSD-src-651feb3ee04330ce16cf68c58aa8ec8c04a05e79.zip
FreeBSD-src-651feb3ee04330ce16cf68c58aa8ec8c04a05e79.tar.gz
Make the comments nice, short-but-sweet XXX format.
Submitted by: sheldonh
Diffstat (limited to 'bin/test')
-rw-r--r--bin/test/test.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/bin/test/test.c b/bin/test/test.c
index a6aa4f1..35af044 100644
--- a/bin/test/test.c
+++ b/bin/test/test.c
@@ -12,7 +12,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: test.c,v 1.25 1999/08/20 16:19:26 green Exp $";
+ "$Id: test.c,v 1.26 1999/08/22 22:32:41 green Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -170,11 +170,7 @@ main(argc, argv)
argv[argc] = NULL;
}
- /*
- * We need to set our real user and group so that when we call
- * access(2), it actually reflects our effective credentials,
- * not the real credentials it wants to use.
- */
+ /* XXX work around the absence of an eaccess(2) syscall */
(void)setgid(getegid());
(void)setuid(geteuid());
@@ -336,10 +332,7 @@ filstat(nm, mode)
case FILWR:
return access(nm, W_OK) == 0;
case FILEX:
- /*
- * We cannot simply use access(2) for this specific case
- * since it can always return false positives for root.
- */
+ /* XXX work around access(2) false positives for superuser */
if (access(nm, X_OK) != 0)
return 0;
if (S_ISDIR(s.st_mode) || getuid() != 0)
OpenPOWER on IntegriCloud