shadow/libmisc
Eric W. Biederman 578947e661 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>
2013-09-10 17:51:40 -05:00
..
.indent.pro Commit the last version from the PLD CVS repository. 2007-10-07 14:36:51 +00:00
addgrps.c * NEWS, libmisc/addgrps.c: Fix allocator loop. Continue to 2011-06-02 15:36:29 +00:00
age.c * libmisc/env.c, libmisc/age.c: Added splint annotations. 2009-04-23 17:33:21 +00:00
audit_help.c
basename.c Miscellaneous: 2011-09-18 21:02:43 +00:00
chkname.c
chkname.h
chowndir.c
chowntty.c
cleanup_group.c * libmisc/cleanup_group.c: Fix compilation when compiled without 2008-12-23 00:39:54 +00:00
cleanup_user.c
cleanup.c * lib/prototypes.h, libmisc/cleanup.c, lib/spawn.c, src/chage.c: 2011-10-18 20:23:33 +00:00
console.c
copydir.c 2012-02-13 Mike Frysinger <vapier@gentoo.org> 2012-02-13 19:16:29 +00:00
entry.c
env.c
failure.c
failure.h
find_new_gid.c
find_new_sub_gids.c Remove dead code. 2013-08-15 17:30:19 +02:00
find_new_sub_uids.c Remove dead code. 2013-08-15 17:30:19 +02:00
find_new_uid.c
getdate.h
getdate.y
getgr_nam_gid.c
getrange.c
hushed.c * libmisc/limits.c: Avoid implicit conversion of integer to 2010-08-22 19:13:53 +00:00
idmapping.c newuidmap,newgidmap: Correct the range size sanity check in get_map_ranges 2013-09-10 17:51:40 -05:00
idmapping.h Document the semantic of ranges. 2013-08-13 19:28:07 +02:00
isexpired.c
limits.c * man/limits.5.xml, libmisc/limits.c: Sort limit identifiers. 2011-11-06 18:39:47 +00:00
list.c
log.c
loginprompt.c * libmisc/salt.c (SHA_salt_rounds): It is statically ensured that 2011-09-18 20:41:38 +00:00
mail.c
Makefile.am newuidmap,newgidmap: New suid helpers for using subordinate uids and gids 2013-08-05 10:08:46 -05:00
motd.c
myname.c
obscure.c
pam_pass_non_interractive.c
pam_pass.c
pwd2spwd.c * lib/prototypes.h, libmisc/addgrps.c: restrict add_groups() to 2009-04-05 22:29:42 +00:00
pwd_init.c
pwdcheck.c
remove_tree.c
rlogin.c
root_flag.c use chdir() before calling chroot() 2013-07-29 11:05:16 +02:00
salt.c (shadow_random): Use long instead of size_t. 2013-08-13 19:16:24 +02:00
setugid.c
setupenv.c Fix memory leak. 2013-08-02 20:28:24 +02:00
shell.c
strtoday.c
sub.c Fix typo in comment. 2013-08-04 15:56:32 +02:00
sulog.c
ttytype.c
tz.c
ulimit.c
user_busy.c Allow disabling of subordinate IDs. 2013-08-11 15:46:59 +02:00
utmp.c Fix for Alioth#314271 (musl libc) 2013-08-07 02:18:43 +02:00
valid.c crypt() in glibc/eglibc 2.17 now fails if passed 2013-07-28 18:41:11 +02:00
xgetgrgid.c * libmisc/xgetXXbyYY.c, libmisc/xgetpwnam.c, libmisc/xgetgrnam.c, 2009-06-11 21:33:00 +00:00
xgetgrnam.c
xgetpwnam.c
xgetpwuid.c
xgetspnam.c
xgetXXbyYY.c Re-indent. 2011-11-06 18:40:06 +00:00
xmalloc.c
yesno.c * libmisc/yesno.c: Ignore the return value of puts. 2009-04-23 11:14:56 +00:00