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,11 +22,13 @@
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
+/*
+ * Copyright (c) 2013 RackTop Systems.
+ */
#include <sys/types.h>
#include <stdio.h>
#include <strings.h>
#include <sys/param.h>
@@ -53,11 +55,11 @@
char mybuf[PROJECT_BUFSZ];
if (!list || !*list)
return ((int **)NULL);
- while (ptr = strtok(((i || n_invalid) ? NULL : list), ",")) {
+ 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");