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:3be7b9d75a
("Remove traces of utmpx") Fixes:170b76cdd1
("Disable utmpx permanently") Cc: Serge Hallyn <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Iker Pedrosa
parent
f301a4ca19
commit
e762ab8b54
@@ -66,8 +66,7 @@ libshadow_la_SOURCES = \
|
||||
shadowio.c \
|
||||
shadowio.h \
|
||||
shadowmem.c \
|
||||
spawn.c \
|
||||
utent.c
|
||||
spawn.c
|
||||
|
||||
if WITH_TCB
|
||||
libshadow_la_SOURCES += tcbfuncs.c tcbfuncs.h
|
||||
|
Reference in New Issue
Block a user