summaryrefslogtreecommitdiffstats
path: root/pw
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2011-07-31 03:00:00 +0000
committerXin LI <delphij@FreeBSD.org>2011-07-31 03:00:00 +0000
commitac30c463e412701f57b6324b04a9ff49fc66d16b (patch)
tree9d7158ff8f3f86a85348493d26f2039c1ff30166 /pw
parent1659ce06fe3e72adb3d9f5e93fb4cfdbcb4b7c1e (diff)
downloadpw-darwin-ac30c463e412701f57b6324b04a9ff49fc66d16b.tar.gz
pw-darwin-ac30c463e412701f57b6324b04a9ff49fc66d16b.tar.zst
pw-darwin-ac30c463e412701f57b6324b04a9ff49fc66d16b.zip
Backout r223115 which potentially caused a POLA violation, by restoring
historic behavior (create the default base directory in pw.conf) before I came up with a better fix for this. Requested by: nwhitehorn Approved by: re (kib)
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 b93ca66..db33746 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) && (getarg(args, 'd') == NULL)) {
+ if (arg != NULL || getarg(args, 'm') != NULL) {
int l = strlen(cnf->home);
if (l > 1 && cnf->home[l-1] == '/') /* Shave off any trailing path delimiter */