Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jun 2013 15:54:17 +0000 (UTC)
From:      Tim Kientzle <kientzle@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252377 - head/usr.sbin/pw
Message-ID:  <201306291554.r5TFsHDk022664@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kientzle
Date: Sat Jun 29 15:54:17 2013
New Revision: 252377
URL: http://svnweb.freebsd.org/changeset/base/252377

Log:
  Fix -Wunsequenced warning
  
  Submitted by:	  dt71@gmx.com

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

Modified: head/usr.sbin/pw/pw_user.c
==============================================================================
--- head/usr.sbin/pw/pw_user.c	Sat Jun 29 15:52:48 2013	(r252376)
+++ head/usr.sbin/pw/pw_user.c	Sat Jun 29 15:54:17 2013	(r252377)
@@ -200,7 +200,7 @@ pw_user(struct userconf * cnf, int mode,
 			strlcpy(dbuf, cnf->home, sizeof(dbuf));
 			p = dbuf;
 			if (stat(dbuf, &st) == -1) {
-				while ((p = strchr(++p, '/')) != NULL) {
+				while ((p = strchr(p + 1, '/')) != NULL) {
 					*p = '\0';
 					if (stat(dbuf, &st) == -1) {
 						if (mkdir(dbuf, _DEF_DIRMODE) == -1)



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