View | Details | Raw Unified | Return to bug 172965
Collapse All | Expand All

(-)b/pw_user.c (-1 / +4 lines)
Lines 862-869 pw_gidpolicy(struct userconf * cnf, struct cargs * args, char *nam, gid_t prefer Link Here
862
862
863
	/*
863
	/*
864
	 * If no arg given, see if default can help out
864
	 * If no arg given, see if default can help out
865
	 * unless the user explicitly specified a blank string.
865
	 */
866
	 */
866
	if (a_gid == NULL && cnf->default_group && *cnf->default_group)
867
	if (a_gid != NULL && !*a_gid->val)
868
		a_gid = NULL;
869
	else if (a_gid == NULL && cnf->default_group && *cnf->default_group)
867
		a_gid = addarg(args, 'g', cnf->default_group);
870
		a_gid = addarg(args, 'g', cnf->default_group);
868
871
869
	/*
872
	/*

Return to bug 172965