|
|
|
@ -923,6 +923,9 @@ class FreeBsdUser(User):
|
|
|
|
|
if self.expires:
|
|
|
|
|
days = (time.mktime(self.expires) - time.time()) // 86400
|
|
|
|
|
cmd.append('-e')
|
|
|
|
|
if self.clearexpires < 0:
|
|
|
|
|
cmd.append('0')
|
|
|
|
|
else:
|
|
|
|
|
cmd.append(str(int(days)))
|
|
|
|
|
|
|
|
|
|
# modify the user if cmd will do anything
|
|
|
|
|