aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/lukemftpd/src/cmds.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2006-08-31 16:55:08 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2006-08-31 16:55:08 +0000
commita5a1d5d318c4cc2916c623e2a232b6ce009acfc5 (patch)
tree69a47569ca430ea4facdfde3a374c615d6ca4de2 /contrib/lukemftpd/src/cmds.c
parent3a802515c66410d4be197709554a1888484563a8 (diff)
downloadsrc-vendor/NetBSD/lukemftpd.tar.gz
src-vendor/NetBSD/lukemftpd.zip
Import of LukeM's ftpd taken from the NetBSD CVS repo on 31-Aug-2006.vendor/NetBSD/lukemftpd
+ Add PAM and LOGIN_CAP support. Mostly from FreeBSD. + Implement option "-D", for running ftpd in standalone mode (daemon). + NLST should return 450 instead of 550 upon error, per RFC 959. + Add recvbufsize configuration option + Remove unreachable code (res could never be NULL here), Coverity CID 712. + Set file to NULL after calling fclose(), Coverity CID 2669. + Make sure that "su" is initialized before dereferencing it, Coverity CID 1075. + Cleanup utmp and utmpx support.
Notes
Notes: svn path=/vendor/lukemftpd/dist/; revision=161764
Diffstat (limited to 'contrib/lukemftpd/src/cmds.c')
-rw-r--r--contrib/lukemftpd/src/cmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/lukemftpd/src/cmds.c b/contrib/lukemftpd/src/cmds.c
index 7c8e2afe1471..0864110d82f2 100644
--- a/contrib/lukemftpd/src/cmds.c
+++ b/contrib/lukemftpd/src/cmds.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cmds.c,v 1.23 2004-08-09 12:56:47 lukem Exp $ */
+/* $NetBSD: cmds.c,v 1.24 2006/02/01 14:20:12 christos Exp $ */
/*
* Copyright (c) 1999-2004 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: cmds.c,v 1.23 2004-08-09 12:56:47 lukem Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.24 2006/02/01 14:20:12 christos Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -391,7 +391,7 @@ opts(const char *command)
/* default cases */
if (ep != NULL && *ep != '\0')
- REASSIGN(c->options, xstrdup(ep));
+ REASSIGN(c->options, ftpd_strdup(ep));
if (c->options != NULL)
reply(200, "Options for %s are '%s'.", c->name,
c->options);
@@ -438,7 +438,7 @@ renamefrom(const char *name)
return (NULL);
}
reply(350, "File exists, ready for destination name");
- return (xstrdup(name));
+ return (ftpd_strdup(name));
}
void