Print this page
4078 groupadd execs getent unnecessarily
Reviewed by: Rich Lowe <richlowe@richlowe.net>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Reviewed by: Milan Jurik <milan.jurik@xylab.cz>
Reviewed by: Gordon Ross <Gordon.W.Ross@gmail.com>

*** 22,32 **** /* * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ ! #pragma ident "%Z%%M% %I% %E% SMI" #include <sys/types.h> #include <stdio.h> #include <strings.h> #include <sys/param.h> --- 22,34 ---- /* * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ ! /* ! * Copyright (c) 2013 RackTop Systems. ! */ #include <sys/types.h> #include <stdio.h> #include <strings.h> #include <sys/param.h>
*** 53,63 **** char mybuf[PROJECT_BUFSZ]; if (!list || !*list) return ((int **)NULL); ! while (ptr = strtok(((i || n_invalid) ? NULL : list), ",")) { switch (valid_project(ptr, &projent, mybuf, sizeof (mybuf), &warning)) { case INVALID: errmsg(M_INVALID, ptr, "project id"); --- 55,65 ---- char mybuf[PROJECT_BUFSZ]; if (!list || !*list) return ((int **)NULL); ! while ((ptr = strtok((i || n_invalid) ? NULL : list, ","))) { switch (valid_project(ptr, &projent, mybuf, sizeof (mybuf), &warning)) { case INVALID: errmsg(M_INVALID, ptr, "project id");