diff options
author | mikeh <mikeh@FreeBSD.org> | 2003-06-16 02:36:38 +0000 |
---|---|---|
committer | mikeh <mikeh@FreeBSD.org> | 2003-06-16 02:36:38 +0000 |
commit | 1f17b0f8d299a66b618d6671fea9597c971de885 (patch) | |
tree | fe7476d6e4129e7a835cd3c91bbef8b7b0b35a14 /contrib/lukemftp/src/cmds.c | |
parent | 500352886b7759d72e40aaabe66abdb2bdd36c8c (diff) | |
download | FreeBSD-src-1f17b0f8d299a66b618d6671fea9597c971de885.zip FreeBSD-src-1f17b0f8d299a66b618d6671fea9597c971de885.tar.gz |
Import the June 15, 2003 CVS version of NetBSD's ftp + patchset to fix
header file differences between FBSD and NBSD. Like lukemftpd, the
portable version of lukemftp lags too far behind CVS.
This import includes several big fixes plus a cleaned up manpage.
Diffstat (limited to 'contrib/lukemftp/src/cmds.c')
-rw-r--r-- | contrib/lukemftp/src/cmds.c | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/contrib/lukemftp/src/cmds.c b/contrib/lukemftp/src/cmds.c index e132400..69aebed 100644 --- a/contrib/lukemftp/src/cmds.c +++ b/contrib/lukemftp/src/cmds.c @@ -1,4 +1,4 @@ -/* $NetBSD: cmds.c,v 1.98 2002/06/05 10:20:46 lukem Exp $ */ +/* $NetBSD: cmds.c,v 1.100 2002/11/30 03:10:55 lukem Exp $ */ /*- * Copyright (c) 1996-2002 The NetBSD Foundation, Inc. @@ -102,11 +102,36 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> +#ifndef lint +#if 0 +static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94"; +#else +__RCSID("$NetBSD: cmds.c,v 1.100 2002/11/30 03:10:55 lukem Exp $"); +#endif +#endif /* not lint */ + /* * FTP User Program -- Command Routines. */ - -#include "lukemftp.h" +#include <sys/types.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> +#include <arpa/ftp.h> + +#include <ctype.h> +#include <err.h> +#include <glob.h> +#include <limits.h> +#include <netdb.h> +#include <paths.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <time.h> +#include <unistd.h> +#include <libutil.h> #include "ftp_var.h" #include "version.h" @@ -1008,7 +1033,7 @@ setgate(int argc, char *argv[]) gatemode = 0; else { if (argc == 3) - gateport = strdup(argv[2]); + gateport = xstrdup(argv[2]); (void)strlcpy(gsbuf, argv[1], sizeof(gsbuf)); gateserver = gsbuf; gatemode = 1; |