Fixes #20096
This commit is contained in:
parent
8c2fae27d6
commit
54619f70f4
1 changed files with 4 additions and 1 deletions
|
@ -923,7 +923,10 @@ class FreeBsdUser(User):
|
|||
if self.expires:
|
||||
days = (time.mktime(self.expires) - time.time()) // 86400
|
||||
cmd.append('-e')
|
||||
cmd.append(str(int(days)))
|
||||
if self.clearexpires < 0:
|
||||
cmd.append('0')
|
||||
else:
|
||||
cmd.append(str(int(days)))
|
||||
|
||||
# modify the user if cmd will do anything
|
||||
if cmd_len != len(cmd):
|
||||
|
|
Loading…
Reference in a new issue