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
commite798ef240207d013e19961d2e4d5918f738997c6 (patch)
treed05e0ca3cf330349ceb521feabfb8d1872143d09 /pw
parentc327255f6a41a7642e501d86ce253cbebb6e138b (diff)
downloadpw-darwin-e798ef240207d013e19961d2e4d5918f738997c6.tar.gz
pw-darwin-e798ef240207d013e19961d2e4d5918f738997c6.tar.zst
pw-darwin-e798ef240207d013e19961d2e4d5918f738997c6.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 */