Merge pull request #6630 from bigl0af/devel

Modified library/system/user so that password change date is set on Sola...
This commit is contained in:
Michael DeHaan 2014-03-28 10:57:59 -04:00
commit df3bb70797

View file

@ -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)