diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2011-03-08 20:13:29 +0000 |
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2011-03-08 20:13:29 +0000 |
| commit | fcc5e033e72566fa7770a355160835fffced4353 (patch) | |
| tree | 30962fcb8e057cab74600fc56a2b55b2f4757fcc /pw/pw_conf.c | |
| parent | 813099beaefaaf474a25ad6cb0f96b2ff52aad21 (diff) | |
| download | pw-darwin-fcc5e033e72566fa7770a355160835fffced4353.tar.gz pw-darwin-fcc5e033e72566fa7770a355160835fffced4353.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: |
