From: Sam Hartman Date: Fri, 19 Jan 1996 00:01:30 +0000 (+0000) Subject: Deal with sys_errlist X-Git-Tag: krb5-1.0-beta6~611 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=671787e2b4910be41223d0f7961acea87ad498ce;p=krb5.git Deal with sys_errlist git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7337 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/gssftp/ftpd/ChangeLog b/src/appl/gssftp/ftpd/ChangeLog index 971c87146..7daf4888c 100644 --- a/src/appl/gssftp/ftpd/ChangeLog +++ b/src/appl/gssftp/ftpd/ChangeLog @@ -1,3 +1,11 @@ +Thu Jan 18 18:39:06 1996 Sam Hartman + + * configure.in: Check for crypt in -lcrypt + + * ftpd.c: Conditionalize sys_errlist + + * configure.in: Check to declare sys_errlist. + Thu Jan 18 14:55:42 1996 Sam Hartman * ftpd.c : Only return an unable to acquire credentials error if all possible services fail. diff --git a/src/appl/gssftp/ftpd/configure.in b/src/appl/gssftp/ftpd/configure.in index 9b4fd1f6b..67e001f70 100644 --- a/src/appl/gssftp/ftpd/configure.in +++ b/src/appl/gssftp/ftpd/configure.in @@ -7,10 +7,12 @@ KRB5_SIGTYPE CHECK_UTMP CHECK_SIGPROCMASK CHECK_WAIT_TYPE +DECLARE_SYS_ERRLIST AC_FUNC_VFORK AC_CHECK_HEADERS(unistd.h stdlib.h string.h) AC_REPLACE_FUNCS(getdtablesize) AC_HAVE_FUNCS(getcwd getusershell seteuid setreuid setresuid) +AC_CHECK_LIB(crypt,crypt) dnl dnl dnl copied from appl/bsd/configure.in AC_MSG_CHECKING([setenv]) diff --git a/src/appl/gssftp/ftpd/ftpd.c b/src/appl/gssftp/ftpd/ftpd.c index a5d014a4b..375fa19ea 100644 --- a/src/appl/gssftp/ftpd/ftpd.c +++ b/src/appl/gssftp/ftpd/ftpd.c @@ -92,7 +92,9 @@ static char sccsid[] = "@(#)ftpd.c 5.40 (Berkeley) 7/2/91"; #endif #define strerror(error) (sys_errlist[error]) +#ifdef NEED_SYS_ERRLIST extern char *sys_errlist[]; +#endif extern char *mktemp ();