[Midnightbsd-cvs] src [6910] trunk/libexec/ftpd/ftpd.c: save and free pw_class like all other char members of struct passwd.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Oct 31 19:57:24 EDT 2014
Revision: 6910
http://svnweb.midnightbsd.org/src/?rev=6910
Author: laffer1
Date: 2014-10-31 19:57:23 -0400 (Fri, 31 Oct 2014)
Log Message:
-----------
save and free pw_class like all other char members of struct passwd. This fixes "login_getclass: unknown class" errors.
Modified Paths:
--------------
trunk/libexec/ftpd/ftpd.c
Modified: trunk/libexec/ftpd/ftpd.c
===================================================================
--- trunk/libexec/ftpd/ftpd.c 2014-10-31 23:21:12 UTC (rev 6909)
+++ trunk/libexec/ftpd/ftpd.c 2014-10-31 23:57:23 UTC (rev 6910)
@@ -1,4 +1,4 @@
-/* $MidnightBSD: src/libexec/ftpd/ftpd.c,v 1.8 2012/04/11 00:46:54 laffer1 Exp $ */
+/* $MidnightBSD$ */
/*
* Copyright (c) 1985, 1988, 1990, 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -11,11 +11,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -47,7 +43,7 @@
#endif /* not lint */
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/libexec/ftpd/ftpd.c,v 1.212.6.2 2008/12/23 01:23:09 cperciva Exp $");
+__FBSDID("$FreeBSD: stable/10/libexec/ftpd/ftpd.c 262435 2014-02-24 08:21:49Z brueffer $");
/*
* FTP server.
@@ -966,6 +962,7 @@
if (save.pw_name) {
free(save.pw_name);
free(save.pw_passwd);
+ free(save.pw_class);
free(save.pw_gecos);
free(save.pw_dir);
free(save.pw_shell);
@@ -973,6 +970,7 @@
save = *p;
save.pw_name = sgetsave(p->pw_name);
save.pw_passwd = sgetsave(p->pw_passwd);
+ save.pw_class = sgetsave(p->pw_class);
save.pw_gecos = sgetsave(p->pw_gecos);
save.pw_dir = sgetsave(p->pw_dir);
save.pw_shell = sgetsave(p->pw_shell);
More information about the Midnightbsd-cvs
mailing list