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>
@@ -26,12 +26,13 @@
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
+/*
+ * Copyright (c) 2013 RackTop Systems.
+ */
/*LINTLIBRARY*/
#include <sys/types.h>
#include <stdio.h>
@@ -52,11 +53,11 @@
if (outcount > 40) { \
outcount = 0; \
(void) fprintf(fptr, "\n"); \
}
-#define SKIPWS(ptr) while (*ptr && *ptr == ' ' || *ptr == '\t') ptr++
+#define SKIPWS(ptr) while (*ptr && (*ptr == ' ' || *ptr == '\t')) ptr++
static char *dup_to_nl(char *);
static struct userdefs defaults = {
DEFRID, DEFGROUP, DEFGNAME, DEFPARENT, DEFSKL,