]> git.ipfire.org Git - thirdparty/shadow.git/commit
useradd: modify check ID range for system users
authorIker Pedrosa <ipedrosa@redhat.com>
Tue, 4 Jan 2022 12:06:00 +0000 (13:06 +0100)
committerSerge Hallyn <serge@hallyn.com>
Wed, 19 Jan 2022 16:02:55 +0000 (10:02 -0600)
commitf1f1678e13aa3ae49bdb139efaa2c5bc53dcfe92
treeb25824dd76a4fe555113c99843a034e7f9048d8a
parente101219ad71de11da3fdd1b3ec2620fd1a97b92c
useradd: modify check ID range for system users

useradd warns that a system user ID less than SYS_UID_MIN is outside the
expected range, even though that ID has been specifically selected with
the "-u" option.

In my opinion all the user ID's below SYS_UID_MAX are for the system,
thus I change the condition to take that into account.

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

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
src/useradd.c