diff options
author | 2011-03-08 20:13:29 +0000 | |
---|---|---|
committer | 2011-03-08 20:13:29 +0000 | |
commit | cf2f172e3ff127a6d0f06869ff515b3440e78952 (patch) | |
tree | d05e0ca3cf330349ceb521feabfb8d1872143d09 /pw/pw_conf.c | |
parent | 66290069ff7719bfc4be941748b359386c05326b (diff) | |
download | pw-darwin-cf2f172e3ff127a6d0f06869ff515b3440e78952.tar.gz pw-darwin-cf2f172e3ff127a6d0f06869ff515b3440e78952.tar.zst pw-darwin-cf2f172e3ff127a6d0f06869ff515b3440e78952.zip |
Stop hard-coding default directory mode as 0777.
Diffstat (limited to 'pw/pw_conf.c')
-rw-r--r-- | pw/pw_conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pw/pw_conf.c b/pw/pw_conf.c index 51672b9..edeb015 100644 --- a/pw/pw_conf.c +++ b/pw/pw_conf.c @@ -91,7 +91,7 @@ static struct userconf config = NULL, /* Mail to send to new accounts */ "/var/log/userlog", /* Where to log changes */ "/home", /* Where to create home directory */ - 0777, /* Home directory perms, modified by umask */ + _DEF_DIRMODE, /* Home directory perms, modified by umask */ "/bin", /* Where shells are located */ system_shells, /* List of shells (first is default) */ bourne_shell, /* Default shell */ @@ -302,7 +302,7 @@ read_userconfig(char const * file) case _UC_HOMEMODE: modeset = setmode(q); config.homemode = (q == NULL || !boolean_val(q, 1)) - ? 0777 : getmode(modeset, 0777); + ? _DEF_DIRMODE : getmode(modeset, _DEF_DIRMODE); free(modeset); break; case _UC_SHELLPATH: |