From 01acd73e3091df2e37399d19616a672353dbdd41 Mon Sep 17 00:00:00 2001 From: David Fox Date: Sat, 22 Mar 2014 15:12:56 -0400 Subject: [PATCH] Modified library/system/user so that password change date is set on Solaris when updating password --- system/user | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/user b/system/user index a6d3a0ec32d..12b1a62d270 100644 --- a/system/user +++ b/system/user @@ -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)