summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Grehan <grehan@FreeBSD.org>2011-06-28 06:26:03 +0000
committerPeter Grehan <grehan@FreeBSD.org>2011-06-28 06:26:03 +0000
commit52f280c4272f6abd7819637b4244bd175d85f567 (patch)
tree35cc810d308ad6a4964cb0f5cda11a376e995117
parent83c759bb22f00e37660ca69d23ebe526fcda3fdb (diff)
parentc327255f6a41a7642e501d86ce253cbebb6e138b (diff)
downloadpw-darwin-52f280c4272f6abd7819637b4244bd175d85f567.tar.gz
pw-darwin-52f280c4272f6abd7819637b4244bd175d85f567.tar.zst
pw-darwin-52f280c4272f6abd7819637b4244bd175d85f567.zip
IFC @ r222830
-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 db33746..b93ca66 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -163,7 +163,7 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args)
* If we'll need to use it or we're updating it,
* then create the base home directory if necessary
*/
- if (arg != NULL || getarg(args, 'm') != NULL) {
+ if ((arg != NULL || getarg(args, 'm') != NULL) && (getarg(args, 'd') == NULL)) {
int l = strlen(cnf->home);
if (l > 1 && cnf->home[l-1] == '/') /* Shave off any trailing path delimiter */