diff options
author | 2015-08-01 12:18:48 +0000 | |
---|---|---|
committer | 2015-08-01 12:18:48 +0000 | |
commit | 5bb254a38fa9e233bcdb24956e1f8ccf2b19182b (patch) | |
tree | c8cd68e3a1ebde2d6a577a92162935d0a778c39b /pw/pw_conf.c | |
parent | 99c28d09467b167abaa8b517679f480b4e21d40b (diff) | |
download | pw-darwin-5bb254a38fa9e233bcdb24956e1f8ccf2b19182b.tar.gz pw-darwin-5bb254a38fa9e233bcdb24956e1f8ccf2b19182b.tar.zst pw-darwin-5bb254a38fa9e233bcdb24956e1f8ccf2b19182b.zip |
Partial revert of r286152
More work needed on the cli validation
Diffstat (limited to 'pw/pw_conf.c')
-rw-r--r-- | pw/pw_conf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pw/pw_conf.c b/pw/pw_conf.c index b723c31..8ba8c07 100644 --- a/pw/pw_conf.c +++ b/pw/pw_conf.c @@ -367,6 +367,8 @@ read_userconfig(char const * file) warnx("Invalid expire days:" " '%s'; ignoring", q); } + if ((q = unquote(q)) != NULL && isdigit(*q)) + config.expire_days = atoi(q); break; case _UC_PASSWORD: if ((q = unquote(q)) != NULL) { |