Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jun 2014 10:38:09 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267670 - head/usr.sbin/pw
Message-ID:  <201406201038.s5KAc9T3031529@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Jun 20 10:38:08 2014
New Revision: 267670
URL: http://svnweb.freebsd.org/changeset/base/267670

Log:
  Fix changing the username
  
  PR:		189172
  Submitted by:	fullermd@over-yonder.net
  MFC after:	1 week

Modified:
  head/usr.sbin/pw/pwupd.c

Modified: head/usr.sbin/pw/pwupd.c
==============================================================================
--- head/usr.sbin/pw/pwupd.c	Fri Jun 20 10:34:32 2014	(r267669)
+++ head/usr.sbin/pw/pwupd.c	Fri Jun 20 10:38:08 2014	(r267670)
@@ -139,7 +139,7 @@ pw_update(struct passwd * pwd, char cons
 		 * in case of deletion of a user, the whole database
 		 * needs to be regenerated
 		 */
-		if (pw_mkdb(pw != NULL ? user : NULL) == -1) {
+		if (pw_mkdb(pw != NULL ? pw->pw_name : NULL) == -1) {
 			pw_fini();
 			err(1, "pw_mkdb()");
 		}



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