Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2014 09:19:16 +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-10@freebsd.org
Subject:   svn commit: r262284 - stable/10/libexec/ftpd
Message-ID:  <201402210919.s1L9JGDk053256@svn.freebsd.org>

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

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

Modified: stable/10/libexec/ftpd/ftpd.c
==============================================================================
--- stable/10/libexec/ftpd/ftpd.c	Fri Feb 21 07:31:24 2014	(r262283)
+++ stable/10/libexec/ftpd/ftpd.c	Fri Feb 21 09:19:16 2014	(r262284)
@@ -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?201402210919.s1L9JGDk053256>