shadow/src
Iker Pedrosa 9dd720a285 useradd: avoid generating an empty subid range
useradd generates an empty subid range when adding a new user. This is
caused because there are two variables, one local and the other one
global, that have a very similar name and they are used indistinctly in
the code. The local variable loads the SUB_*ID_COUNT configuration from
the login.defs file, while the global variable, which holds a value of
0, is used to generate the subid range. Causing the empty subid range
problem.

I've merged the two variables in the local one and removed the global
variable. I prefer to do it this way to reduce the scope of it but I'm
open to doing it the other way round.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1990653

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
2021-08-10 10:04:39 +02:00
..
.gitignore Create a new libsubid 2020-06-07 12:11:58 -05:00
.indent.pro [svn-upgrade] Integrating new upstream version, shadow (4.0.8) 2007-10-07 11:46:07 +00:00
chage.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
check_subid_range.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
chfn.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
chgpasswd.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
chpasswd.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
chsh.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
expiry.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
faillog.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
free_subid_range.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
get_subid_owners.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
gpasswd.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
groupadd.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
groupdel.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
groupmems.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
groupmod.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
groups.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
grpck.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
grpconv.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
grpunconv.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
id.c * src/newgrp.c: Limit the scope of variable pid. 2010-03-23 11:26:34 +00:00
lastlog.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
list_subid_ranges.c nss/libsubid: simplify the ranges variable for list_owner_ranges 2021-05-22 17:59:57 -05:00
login_nopam.c * src/newgrp.c: Limit the scope of variable pid. 2010-03-23 11:26:34 +00:00
login.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
logoutd.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
Makefile.am Makefile: include libeconf dependency in new*idmap 2021-08-02 15:54:20 +02:00
new_subid_range.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
newgidmap.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
newgrp.c Fix covscan RESOURCE_LEAK 2021-06-24 09:18:35 +02:00
newuidmap.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
newusers.c usermod, newusers, prefix: enforce absolute paths for homedir 2021-06-01 22:12:24 -05:00
nologin.c Adding logging of SSH_ORIGINAL_COMMAND to nologin. 2020-01-11 14:46:52 -06:00
passwd.c passwd: handle NULL pw_passwd when printing password status 2021-08-03 20:03:46 +02:00
pwck.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
pwconv.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
pwunconv.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
su.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
suauth.c spelling: unrecognized 2017-10-22 21:30:30 +00:00
sulogin.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
useradd.c useradd: avoid generating an empty subid range 2021-08-10 10:04:39 +02:00
userdel.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
usermod.c usermod: allow all group types with -G option 2021-08-03 11:14:09 +02:00
vipw.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00