]> granicus.if.org Git - shadow/commit
sub[ug]id: compare range before comparing username/UID, to avoid unnecessary syscalls subuigid-numeric
authorBostjan Skufca <bostjan@a2o.si>
Sat, 6 Sep 2014 18:47:55 +0000 (18:47 +0000)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 17 Sep 2014 20:48:24 +0000 (15:48 -0500)
commit1d049b6aedb7f94a97369215787e111b4b1dc584
treedc35303495fc4ba4e1b7afea978fceb36efdd988
parent37e2a687e3a67a3ea14f8ed01a52ec6a76149990
sub[ug]id: compare range before comparing username/UID, to avoid unnecessary syscalls

Change suggested by Nicolas François as performance optimization.
Performance penalty would be really noticeable when usernames are
stored in remote databases (ldap).

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
lib/subordinateio.c