]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/: Remove arbitrary limitation by calling strdup(3)
authorAlejandro Colomar <alx@kernel.org>
Sat, 7 Dec 2024 21:01:08 +0000 (22:01 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 30 May 2025 21:11:16 +0000 (16:11 -0500)
commitd87ecf5dd02e69e978395e125db6380158aae308
tree2d0d1af6efb6827e5de35de5c2f57bdfdf378c2e
parentc7692f1dc20115b608a791f39dfb7299e84c8d47
lib/: Remove arbitrary limitation by calling strdup(3)

This makes these APIs more consistent with the ones for groups,
which strdup(3) memory as necessary.

It also makes the code simpler.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/sgetpwent.c
lib/sgetspent.c