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
commit9abed571e35148d563a116eca8c222a7afa18adc (patch)
tree5eeab2ebb6b54baad8fd66879aa383260489baaa /pw/pw_group.c
parent64c0761c094841650f4a2f526423c5e0116b5425 (diff)
downloadpw-darwin-9abed571e35148d563a116eca8c222a7afa18adc.tar.gz
pw-darwin-9abed571e35148d563a116eca8c222a7afa18adc.tar.zst
pw-darwin-9abed571e35148d563a116eca8c222a7afa18adc.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 =
{