Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2014 09:22:37 +0000 (UTC)
From:      Christian Brueffer <brueffer@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r262286 - stable/8/libexec/ftpd
Message-ID:  <201402210922.s1L9Mbl6056595@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brueffer
Date: Fri Feb 21 09:22:37 2014
New Revision: 262286
URL: http://svnweb.freebsd.org/changeset/base/262286

Log:
  MFC: r261885
  
  In sgetpwnam(), save and free pw_class like all other char members
  of struct passwd.  This fixes spurious "login_getclass: unknown class"
  errors.
  
  PR:		186439
  Submitted by:	UEMURA Tetsuya <t_uemura at macome.co.jp>

Modified:
  stable/8/libexec/ftpd/ftpd.c
Directory Properties:
  stable/8/libexec/ftpd/   (props changed)

Modified: stable/8/libexec/ftpd/ftpd.c
==============================================================================
--- stable/8/libexec/ftpd/ftpd.c	Fri Feb 21 09:21:02 2014	(r262285)
+++ stable/8/libexec/ftpd/ftpd.c	Fri Feb 21 09:22:37 2014	(r262286)
@@ -967,6 +967,7 @@ sgetpwnam(char *name)
 	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);
@@ -974,6 +975,7 @@ sgetpwnam(char *name)
 	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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402210922.s1L9Mbl6056595>