Closed alejandro-colomar closed 9 months ago
There are two implementations, one relies on utmp and the other on systemd. The first one is the old implementation, and we should be deprecating it at some point in the future. The second implementation is the present/future.
https://github.com/shadow-maint/shadow/blob/4c0c7c52f14382f7b6f7e36337d28c4460923db4/lib/limits.c#L131
There are 2 definitions of this function, but only one call:
Do we build conditionally one or the other depending on the configuration, or is one of them dead code?
Cc: @ikerexxe
Iker, since you wrote tests for this function, do you know this?