diff options
| author | Xin LI <delphij@FreeBSD.org> | 2011-06-15 19:09:58 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2011-06-15 19:09:58 +0000 |
| commit | c327255f6a41a7642e501d86ce253cbebb6e138b (patch) | |
| tree | 35cc810d308ad6a4964cb0f5cda11a376e995117 /pw/pw_user.c | |
| parent | cf2f172e3ff127a6d0f06869ff515b3440e78952 (diff) | |
| download | pw-darwin-c327255f6a41a7642e501d86ce253cbebb6e138b.tar.gz pw-darwin-c327255f6a41a7642e501d86ce253cbebb6e138b.zip | |
Don't attempt to create the base directory when -d is specified.
MFC after: 1 month
Diffstat (limited to 'pw/pw_user.c')
| -rw-r--r-- | pw/pw_user.c | 2 |
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 */ |
