]> git.ipfire.org Git - thirdparty/shadow.git/commit
newuidmap,newgidmap: Correct the range size sanity check in get_map_ranges 4.2.1
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 8 Sep 2013 09:49:52 +0000 (02:49 -0700)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 10 Sep 2013 22:51:40 +0000 (17:51 -0500)
commit578947e6614aae91e2550c83790e79479b951e40
tree143aab846699ab08dc61fa4d81c7c4f0d11a5cf1
parent5e87ff0615bbd8de2b709eb3d53d12dfaedb4dbc
newuidmap,newgidmap: Correct the range size sanity check in get_map_ranges

The number of ranges should be the ceiling of the number of arguments divided
by three.

Without this fix newuidmap and newgidmap always report and error and fail,
which is very much not what we want.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
libmisc/idmapping.c