]> git.ipfire.org Git - thirdparty/shadow.git/commit
usermod: refuse invalid uidmaps during --add-sub{u,g}ids
authorTycho Andersen <tycho@tycho.pizza>
Tue, 13 Feb 2024 21:30:12 +0000 (14:30 -0700)
committerSerge Hallyn <serge@hallyn.com>
Tue, 13 Feb 2024 22:06:23 +0000 (16:06 -0600)
commit714b6a53d521c2239dd32368e2b09e8827a0c97e
treee80d059b9b91fc093c901239328468bad599dde4
parent1175932c0c86ee46ee298fd9cfa01653a2ba3a27
usermod: refuse invalid uidmaps during --add-sub{u,g}ids

It is slightly confusing to allow adding these only to later refuse them.

Here is a (lightly tested :) patch to also refuse them when adding.

Signed-off-by: Tycho Andersen <tycho@tycho.pizza>
src/usermod.c