diff --git a/libexec/ftpd/Makefile b/libexec/ftpd/Makefile index 50f51cf60b45..75df272ae184 100644 --- a/libexec/ftpd/Makefile +++ b/libexec/ftpd/Makefile @@ -1,4 +1,5 @@ # @(#)Makefile 8.2 (Berkeley) 4/4/94 +# $Id$ PROG= ftpd MAN8= ftpd.8 @@ -11,11 +12,13 @@ DPADD= ${LIBSKEY} ${LIBMD} ${LIBCRYPT} ${LIBUTIL} CLEANFILES+=ftpcmd.c y.tab.h -.if defined(KERBEROS) +.if exists(${DESTDIR}/usr/lib/libkrb.a) && defined(MAKE_EBONES) +.PATH: ${.CURDIR}/../../usr.bin/login SRCS+= klogin.c LDADD+= -lkrb -ldes DPADD+= ${LIBKRB} ${LIBDES} CFLAGS+=-DKERBEROS +DISTRIBUTION= krb .endif .include diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 9ea4e47f8dcb..13a286ca3a40 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -30,18 +30,22 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ftpd.c,v 1.20 1996/08/06 08:43:43 phk Exp $ + * $Id$ */ +#if 0 #ifndef lint static char copyright[] = "@(#) Copyright (c) 1985, 1988, 1990, 1992, 1993, 1994\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ +#endif +#if 0 #ifndef lint static char sccsid[] = "@(#)ftpd.c 8.4 (Berkeley) 4/16/94"; #endif /* not lint */ +#endif /* * FTP server. @@ -144,8 +148,13 @@ char *ident = NULL; static char ttyline[20]; char *tty = ttyline; /* for klogin */ +#ifdef KERBEROS +int klogin __P((struct passwd *, char *, char *, char *)); +#endif + #if defined(KERBEROS) int notickets = 1; +int noticketsdontcomplain = 1; char *krbtkfile_env = NULL; #endif @@ -562,7 +571,7 @@ user(name) "ANONYMOUS FTP LOGIN REFUSED FROM %s", remotehost); return; } - if (pw = sgetpwnam(name)) { + if ((pw = sgetpwnam(name))) { if ((shell = pw->pw_shell) == NULL || *shell == 0) shell = _PATH_BSHELL; while ((cp = getusershell()) != NULL) @@ -1453,7 +1462,7 @@ yyerror(s) { char *cp; - if (cp = strchr(cbuf,'\n')) + if ((cp = strchr(cbuf,'\n'))) *cp = '\0'; reply(500, "'%s': command not understood.", cbuf); } @@ -1783,7 +1792,7 @@ send_file_list(whichf) transflag = 0; goto out; } - while (dirname = *dirlist++) { + while ((dirname = *dirlist++)) { if (stat(dirname, &st) < 0) { /* * If user typed "ls -l", etc, and the client diff --git a/libexec/ftpd/popen.c b/libexec/ftpd/popen.c index b26732e7be39..90a39cbf044c 100644 --- a/libexec/ftpd/popen.c +++ b/libexec/ftpd/popen.c @@ -34,10 +34,11 @@ * SUCH DAMAGE. * */ - +#if 0 #ifndef lint static char sccsid[] = "@(#)popen.c 8.3 (Berkeley) 4/6/94"; #endif /* not lint */ +#endif #include #include