summaryrefslogtreecommitdiffstats
path: root/pw/pw_user.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2013-06-29 15:54:17 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2013-06-29 15:54:17 +0000
commit569f264f242252a2000658d3f839081ea278d3c5 (patch)
tree5ec550e1056e4c7e8d5ec13a08769be203264366 /pw/pw_user.c
parent6e958ef1b49b6a86d2c9a1fd68f98f9e84842aaa (diff)
downloadpw-darwin-569f264f242252a2000658d3f839081ea278d3c5.tar.gz
pw-darwin-569f264f242252a2000658d3f839081ea278d3c5.tar.zst
pw-darwin-569f264f242252a2000658d3f839081ea278d3c5.zip
Fix -Wunsequenced warning
Submitted by: dt71@gmx.com
Diffstat (limited to 'pw/pw_user.c')
-rw-r--r--pw/pw_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index 5f4d7a9..b49cfce 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -200,7 +200,7 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args)
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)