diff options
| author | Jacques Vidrine <nectar@FreeBSD.org> | 2000-09-30 17:29:54 +0000 | 
|---|---|---|
| committer | Jacques Vidrine <nectar@FreeBSD.org> | 2000-09-30 17:29:54 +0000 | 
| commit | 534f2a9dad783255926c89ab03551abe0180ea20 (patch) | |
| tree | 31a95f26cdc5bb0f232dc037a9a58c0913adf2da /lib/libc/net/hesiod.c | |
| parent | 9ac7e0f1e27710a53985ad955917efc238a5f894 (diff) | |
Notes
Diffstat (limited to 'lib/libc/net/hesiod.c')
| -rw-r--r-- | lib/libc/net/hesiod.c | 7 | 
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/net/hesiod.c b/lib/libc/net/hesiod.c index 220244c5d947..2e4ff7df7262 100644 --- a/lib/libc/net/hesiod.c +++ b/lib/libc/net/hesiod.c @@ -88,14 +88,11 @@ hesiod_init(context)  {  	struct hesiod_p	*ctx;  	const char	*p, *configname; -	int		 trust; - -	trust = geteuid() == getuid() && getegid() == getgid();   	ctx = malloc(sizeof(struct hesiod_p));  	if (ctx) {  		*context = ctx; -		if (trust) +		if (!issetugid())  			configname = getenv("HESIOD_CONFIG");  		else  			configname = NULL; @@ -106,7 +103,7 @@ hesiod_init(context)  			 * The default rhs can be overridden by an  			 * environment variable.  			 */ -			if (trust) +			if (!issetugid())  				p = getenv("HES_DOMAIN");  			else  				p = NULL;  | 
