From c45aa4fd17eeebb2c109177ce6fe6a41d4c54a0a Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Tue, 20 Jun 1995 19:08:46 +0000 Subject: [PATCH] * main.c: HAS_GETUSERSHELL -> HAVE_GETUSERSHELL * configure.in: add test for getusershell() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6104 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/ksu/ChangeLog | 5 +++++ src/clients/ksu/configure.in | 1 + src/clients/ksu/main.c | 8 ++++---- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/clients/ksu/ChangeLog b/src/clients/ksu/ChangeLog index 9c9915109..24a7e1504 100644 --- a/src/clients/ksu/ChangeLog +++ b/src/clients/ksu/ChangeLog @@ -1,3 +1,8 @@ +Tue Jun 20 14:32:46 1995 Tom Yu (tlyu@dragons-lair) + + * main.c: HAS_GETUSERSHELL -> HAVE_GETUSERSHELL + + * configure.in: add test for getusershell() Thu Jun 15 17:46:22 EDT 1995 Paul Park (pjpark@mit.edu) * Makefile.in - Change explicit library names to -l form, and diff --git a/src/clients/ksu/configure.in b/src/clients/ksu/configure.in index a0bcfeb8a..ff03dcd4e 100644 --- a/src/clients/ksu/configure.in +++ b/src/clients/ksu/configure.in @@ -4,5 +4,6 @@ AC_PROG_INSTALL AC_CHECK_LIB(ndbm,main) AC_CHECK_LIB(dbm,main) AC_CHECK_HEADERS(stdarg.h) +AC_CHECK_FUNCS(getusershell) V5_USE_SHARED_LIB V5_AC_OUTPUT_MAKEFILE diff --git a/src/clients/ksu/main.c b/src/clients/ksu/main.c index e4f426c25..6e930a2fb 100644 --- a/src/clients/ksu/main.c +++ b/src/clients/ksu/main.c @@ -702,7 +702,7 @@ char * dir_of_cc_source; shell = _DEF_CSH; /* default is cshell */ } -#ifdef HAS_GETUSERSHELL +#ifdef HAVE_GETUSERSHELL /* insist that the target login uses a standard shell (root is omited) */ @@ -711,7 +711,7 @@ char * dir_of_cc_source; sweep_up(ksu_context, use_source_cache, cc_target); exit(1); } -#endif /* HAS_GETUSERSHELL */ +#endif /* HAVE_GETUSERSHELL */ if (target_pwd->pw_uid){ @@ -847,7 +847,7 @@ char * dir_of_cc_source; } } -#ifdef HAS_GETUSERSHELL +#ifdef HAVE_GETUSERSHELL int standard_shell(sh) char *sh; @@ -861,7 +861,7 @@ char *getusershell(); return (0); } -#endif /* HAS_GETUSERSHELL */ +#endif /* HAVE_GETUSERSHELL */ char * ontty() { -- 2.26.2