diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-08 02:53:01 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-08 02:53:01 +0000 |
commit | fe5213007260cc130a785343c7f76cac4d23b7d8 (patch) | |
tree | 6eccfc2f5fb61e217a531a0b23eaffa57712248b /gnu/usr.bin | |
parent | 45d5053f7a0d674b5e87bd40a104c15345dfe741 (diff) |
Don't bitch about kerberos not being setup--it often is not.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/sudo/sudo/check.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/sudo/sudo/check.c b/gnu/usr.bin/sudo/sudo/check.c index 563cd8f3585..e3a63bda39c 100644 --- a/gnu/usr.bin/sudo/sudo/check.c +++ b/gnu/usr.bin/sudo/sudo/check.c @@ -1,4 +1,4 @@ -/* $OpenBSD: check.c,v 1.8 1998/03/31 06:40:49 millert Exp $ */ +/* $OpenBSD: check.c,v 1.9 1998/04/08 02:53:00 millert Exp $ */ /* * CU sudo version 1.5.5 (based on Root Group sudo version 1.1) @@ -680,9 +680,9 @@ static int sudo_krb_validate_user(pw_ent, pass) char tkfile[sizeof(_PATH_SUDO_TIMEDIR) + 4 + MAX_UID_T_LEN]; int k_errno; - /* Get the local realm */ + /* Get the local realm, or retrun failure (no krb.conf) */ if (krb_get_lrealm(realm, 1) != KSUCCESS) - (void) fprintf(stderr, "Warning: Unable to get local kerberos realm\n"); + return(-1); /* * Set the ticket file to be in sudo sudo timedir so we don't |