Compilation fix. user was removed from the list of global variables.
This commit is contained in:
parent
b9a00ea0ee
commit
1ec694eae7
@ -127,6 +127,7 @@ static void print_one (const struct passwd *pw)
|
|||||||
static void print (void)
|
static void print (void)
|
||||||
{
|
{
|
||||||
off_t offset;
|
off_t offset;
|
||||||
|
uid_t user;
|
||||||
|
|
||||||
setpwent ();
|
setpwent ();
|
||||||
while ((pwent = getpwent ())) {
|
while ((pwent = getpwent ())) {
|
||||||
@ -200,7 +201,7 @@ int main (int argc, char **argv)
|
|||||||
umax = umin;
|
umax = umin;
|
||||||
} else {
|
} else {
|
||||||
char *endptr = NULL;
|
char *endptr = NULL;
|
||||||
user = strtol(optarg, &endptr, 10);
|
uid_t user = strtol(optarg, &endptr, 10);
|
||||||
if (*optarg != '\0' && *endptr == '\0') {
|
if (*optarg != '\0' && *endptr == '\0') {
|
||||||
if (user < 0) {
|
if (user < 0) {
|
||||||
/* -<userid> */
|
/* -<userid> */
|
||||||
|
Loading…
Reference in New Issue
Block a user