Merge pull request #548 from mavit/solaris-user-groups
Fix appending to a user's group on Solaris, someone thought it was a list but it is really a set.
This commit is contained in:
commit
a2c1daf00e
1 changed files with 1 additions and 1 deletions
|
@ -1255,7 +1255,7 @@ class SunOS(User):
|
||||||
cmd.append('-G')
|
cmd.append('-G')
|
||||||
new_groups = groups
|
new_groups = groups
|
||||||
if self.append:
|
if self.append:
|
||||||
new_groups.extend(current_groups)
|
new_groups.update(current_groups)
|
||||||
cmd.append(','.join(new_groups))
|
cmd.append(','.join(new_groups))
|
||||||
|
|
||||||
if self.comment is not None and info[4] != self.comment:
|
if self.comment is not None and info[4] != self.comment:
|
||||||
|
|
Loading…
Reference in a new issue