Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2014 09:21:02 +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-9@freebsd.org
Subject:   svn commit: r262285 - stable/9/libexec/ftpd
Message-ID:  <201402210921.s1L9L25N056273@svn.freebsd.org>

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

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/9/libexec/ftpd/ftpd.c
Directory Properties:
  stable/9/libexec/ftpd/   (props changed)

Modified: stable/9/libexec/ftpd/ftpd.c
==============================================================================
--- stable/9/libexec/ftpd/ftpd.c	Fri Feb 21 09:19:16 2014	(r262284)
+++ stable/9/libexec/ftpd/ftpd.c	Fri Feb 21 09:21:02 2014	(r262285)
@@ -965,6 +965,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);
@@ -972,6 +973,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?201402210921.s1L9L25N056273>