diff options
Diffstat (limited to 'src/clients')
| -rw-r--r-- | src/clients/ksu/ChangeLog | 5 | ||||
| -rw-r--r-- | src/clients/ksu/main.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/clients/ksu/ChangeLog b/src/clients/ksu/ChangeLog index 97123c9b4..14fbd7e9c 100644 --- a/src/clients/ksu/ChangeLog +++ b/src/clients/ksu/ChangeLog @@ -1,3 +1,8 @@ +Wed Jan 18 12:21:30 1995 <tytso@rsx-11.mit.edu> + + * main.c (main): If gethostbyname returns an error, exit after + printing an error message. + Fri Jan 13 15:23:47 1995 Chris Provenzano (proven@mit.edu) * Added krb5_context to all krb5_routines diff --git a/src/clients/ksu/main.c b/src/clients/ksu/main.c index 489c81941..0a756d495 100644 --- a/src/clients/ksu/main.c +++ b/src/clients/ksu/main.c @@ -369,7 +369,8 @@ char * dir_of_cc_source; init_auth_names(target_pwd->pw_dir); if (gethostname (localhostname, MAXHOSTNAMELEN)){ - fprintf (stderr, " failed to get localhostname\n"); + fprintf (stderr, " failed to get localhostname\n"); + exit(1); } /***********************************/ |
