Make the comments nice, short-but-sweet XXX format.

Submitted by:	sheldonh
This commit is contained in:
Brian Feldman 1999-08-24 06:10:14 +00:00
parent 076dab2983
commit 2a6d85a9cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50302

View File

@ -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)