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>

*** 24,34 **** */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ ! #include <sys/types.h> #include <sys/stat.h> #include <sys/param.h> #include <stdio.h> --- 24,36 ---- */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ ! /* ! * Copyright (c) 2013 RackTop Systems. ! */ #include <sys/types.h> #include <sys/stat.h> #include <sys/param.h> #include <stdio.h>
*** 508,523 **** call_pass = 1; } } ! if (comment) /* ignore comment if comment is not changed */ if (strcmp(pstruct->pw_comment, comment)) call_pass = 1; else comment = NULL; /* inactive string is a positive integer */ if (inactstr) { /* convert inactstr to integer */ inact = (int)strtol(inactstr, &ptr, 10); --- 510,526 ---- call_pass = 1; } } ! if (comment) { /* ignore comment if comment is not changed */ if (strcmp(pstruct->pw_comment, comment)) call_pass = 1; else comment = NULL; + } /* inactive string is a positive integer */ if (inactstr) { /* convert inactstr to integer */ inact = (int)strtol(inactstr, &ptr, 10);