* fixed #28183 - user module shadowfile update on SunOS
(cherry picked from commit b5a00d05d3
)
This commit is contained in:
parent
bb4283edc4
commit
75facf5324
1 changed files with 2 additions and 0 deletions
|
@ -1356,6 +1356,7 @@ class SunOS(User):
|
|||
try:
|
||||
lines = []
|
||||
for line in open(self.SHADOWFILE, 'rb').readlines():
|
||||
line = to_native(line, errors='surrogate_or_strict')
|
||||
fields = line.strip().split(':')
|
||||
if not fields[0] == self.name:
|
||||
lines.append(line)
|
||||
|
@ -1450,6 +1451,7 @@ class SunOS(User):
|
|||
try:
|
||||
lines = []
|
||||
for line in open(self.SHADOWFILE, 'rb').readlines():
|
||||
line = to_native(line, errors='surrogate_or_strict')
|
||||
fields = line.strip().split(':')
|
||||
if not fields[0] == self.name:
|
||||
lines.append(line)
|
||||
|
|
Loading…
Reference in a new issue