summaryrefslogtreecommitdiffstats
path: root/pw
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
commitef6308ed8bafbe7e21c5367aae7f8d2844b34c14 (patch)
tree400e62ec3f653ab77807f9cf0f07a56b4a831bdf /pw
parentc10188736860f567cedd85948284a1f0db4f446c (diff)
downloadpw-darwin-ef6308ed8bafbe7e21c5367aae7f8d2844b34c14.tar.gz
pw-darwin-ef6308ed8bafbe7e21c5367aae7f8d2844b34c14.tar.zst
pw-darwin-ef6308ed8bafbe7e21c5367aae7f8d2844b34c14.zip
Fix -Wunsequenced warning
Submitted by: dt71@gmx.com
Diffstat (limited to 'pw')
-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)