diff options
Diffstat (limited to 'pw/pwupd.c')
-rw-r--r-- | pw/pwupd.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -166,6 +166,8 @@ pw_update(struct passwd * pwd, char const * user, int mode) else fmtpwentry(pwbuf, pwd, PWF_PASSWD); + if (l == -1) + l = 0; rc = fileupdate(getpwpath(_PASSWD), 0644, pwbuf, pfx, l, mode); if (rc == 0) { |