Bugfix for setting user groups on OpenBSD
This commit is contained in:
parent
e506b5da14
commit
2e392f47c8
1 changed files with 2 additions and 2 deletions
|
@ -1028,7 +1028,7 @@ class OpenBSDUser(User):
|
||||||
if self.groups is not None:
|
if self.groups is not None:
|
||||||
current_groups = self.user_group_membership()
|
current_groups = self.user_group_membership()
|
||||||
groups_need_mod = False
|
groups_need_mod = False
|
||||||
groups_option = '-G'
|
groups_option = '-S'
|
||||||
groups = []
|
groups = []
|
||||||
|
|
||||||
if self.groups == '':
|
if self.groups == '':
|
||||||
|
@ -1042,7 +1042,7 @@ class OpenBSDUser(User):
|
||||||
if self.append:
|
if self.append:
|
||||||
for g in groups:
|
for g in groups:
|
||||||
if g in group_diff:
|
if g in group_diff:
|
||||||
groups_option = '-S'
|
groups_option = '-G'
|
||||||
groups_need_mod = True
|
groups_need_mod = True
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue