Modified library/system/user so that password change date is set on Solaris when updating password
This commit is contained in:
parent
4028f55c04
commit
01acd73e30
1 changed files with 2 additions and 0 deletions
|
@ -1186,6 +1186,7 @@ class SunOS(User):
|
|||
lines.append(line)
|
||||
continue
|
||||
fields[1] = self.password
|
||||
fields[2] = str(int(time.time() / 86400))
|
||||
line = ':'.join(fields)
|
||||
lines.append('%s\n' % line)
|
||||
open(self.SHADOWFILE, 'w+').writelines(lines)
|
||||
|
@ -1272,6 +1273,7 @@ class SunOS(User):
|
|||
lines.append(line)
|
||||
continue
|
||||
fields[1] = self.password
|
||||
fields[2] = str(int(time.time() / 86400))
|
||||
line = ':'.join(fields)
|
||||
lines.append('%s\n' % line)
|
||||
open(self.SHADOWFILE, 'w+').writelines(lines)
|
||||
|
|
Loading…
Reference in a new issue