Fix user and group name to number conversion for uid/gid above 2^31.
This commit is contained in:
1 parent
fd7c66dd7b
commit
c833a62418
1 file changed
+2
-2
@@ -280,7 +280,7 @@ static int conv_uid (const char *restrict name, struct el *restrict e)
|
||||
xwarnx(_("invalid user name: %s"), name);
|
||||
return 0;
|
||||
}
|
||||
e->num = pwd->pw_uid;
|
||||
e->num = (int) pwd->pw_uid;
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ static int conv_gid (const char *restrict name, struct el *restrict e)
|
||||
xwarnx(_("invalid group name: %s"), name);
|
||||
return 0;
|
||||
}
|
||||
e->num = grp->gr_gid;
|
||||
e->num = (int) grp->gr_gid;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user