summaryrefslogtreecommitdiffstats
path: root/pw/pw_group.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-06-07 14:34:38 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-06-07 14:34:38 +0000
commit39d77815028ba1a72509c07e0a8583493f6ec0a8 (patch)
treee3b778855ca7b7ba0df773f33e8aa263ded157d5 /pw/pw_group.c
parent9eca0d3b9875657b856d9f4b2c808164886ef1cd (diff)
downloadpw-darwin-39d77815028ba1a72509c07e0a8583493f6ec0a8.tar.gz
pw-darwin-39d77815028ba1a72509c07e0a8583493f6ec0a8.zip
Add a new global struct pwconf to store etcpath, rootdir and struct userconf
Do not add anymore -R and -V to arglist Add an error message if both -V and -R are set in arguments
Diffstat (limited to 'pw/pw_group.c')
-rw-r--r--pw/pw_group.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pw/pw_group.c b/pw/pw_group.c
index bc559a5..b57eab3 100644
--- a/pw/pw_group.c
+++ b/pw/pw_group.c
@@ -48,7 +48,7 @@ static int print_group(struct group * grp, int pretty);
static gid_t gr_gidpolicy(struct userconf * cnf, struct cargs * args);
int
-pw_group(struct userconf * cnf, int mode, struct cargs * args)
+pw_group(int mode, struct cargs * args)
{
int rc;
struct carg *a_newname = getarg(args, 'l');
@@ -58,6 +58,7 @@ pw_group(struct userconf * cnf, int mode, struct cargs * args)
struct group *grp = NULL;
int grmembers = 0;
char **members = NULL;
+ struct userconf *cnf = conf.userconf;
static struct group fakegroup =
{