]> git.ipfire.org Git - thirdparty/shadow.git/commit
Assume getutent(3) exists (remove dead code)
authorAlejandro Colomar <alx@kernel.org>
Tue, 7 Feb 2023 17:37:23 +0000 (18:37 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Wed, 8 Feb 2023 16:21:34 +0000 (17:21 +0100)
commite762ab8b54eab539952a136296be9a9bd6132444
treedec073ef9ef7c7b6d86c6594f2aff5be52d2eb60
parentf301a4ca19533a5c93bba44db2d8e345fa909e35
Assume getutent(3) exists (remove dead code)

Recently, we removed support for 'struct utmpx'.  We did it because utmp
and utmpx are identical, and while POSIX specifies utmpx (and not utmp),
GNU/Linux documentation seems to favor utmp.  Also, this project
defaulted to utmp, so changing to utmpx would be more dangerous than
keeping old defaults, even if it's supposed to be the same.

Now, I just found more code that didn't make much sense: lib/utent.c
provides definitions for getutent(3) and friends in case the system
doesn't provide them, but we don't provide prototypes for those
definitions, so code using the functions would have never compiled.

Let's just remove these definitions as dead code.

Fixes: 3be7b9d75a6b ("Remove traces of utmpx")
Fixes: 170b76cdd1a9 ("Disable utmpx permanently")
Cc: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
configure.ac
lib/Makefile.am
lib/utent.c [deleted file]
po/POTFILES.in