summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHayden <me@diatr.us>2021-03-20 14:10:42 -0400
committerGitHub <noreply@github.com>2021-03-20 14:10:42 -0400
commit088937bbeef71ea65df8721712b5b5fd1a77791f (patch)
treec9223bc00771ef45c9e0ae485a5ec8461433d876
parent0a213d845645d975935d6cd617ebedb0cbb32447 (diff)
downloadpw-darwin-088937bbeef71ea65df8721712b5b5fd1a77791f.tar.gz
pw-darwin-088937bbeef71ea65df8721712b5b5fd1a77791f.tar.zst
pw-darwin-088937bbeef71ea65df8721712b5b5fd1a77791f.zip
Fix issue where user not in /etc/shells main group
-rw-r--r--pw/pw_user.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index 85aa292..9d82f99 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -1511,6 +1511,8 @@ pw_user_add(int argc, char **argv, char *arg1)
if (!grname)
grname = cmdcnf->default_group;
+
+ split_groups(&cmdcnf->groups, grname);
pwd = &fakeuser;
pwd->pw_name = name;