diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-08-01 12:18:48 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-08-01 12:18:48 +0000 |
| commit | 5837d32617e40ec26202ff5e8d8f400e387de9b7 (patch) | |
| tree | 8bcd54e05ab482c1e7df50107e66d2b961de647a /pw/pw_conf.c | |
| parent | 99f27a4625240a43c12ba794ab6d1981eaae0946 (diff) | |
| download | pw-darwin-5837d32617e40ec26202ff5e8d8f400e387de9b7.tar.gz pw-darwin-5837d32617e40ec26202ff5e8d8f400e387de9b7.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) { |
