Hello Andrew, On 4/4/25 11:13 PM, Andrew Bower wrote:
On Fri, Apr 04, 2025 at 09:10:42PM +0200, Dirk Lehmann wrote:On 4/3/25 2:58 PM, Antonio Terceiro wrote:I never cared about /run/utmp in itself, but I got used to last(1). FWIW, a new implementation of last is now provided by wtmpdb.+1 great, it looks like that * wtmpdb(8)[...]The program arguments are not fully compatible with Unix equivalent last(1). I.e. it seems not to be possible to just filter out all current still active sessions, which should be provided by `last -p` in the Unix world.Presumably you used 'last -p now' for this? It looks like this would be satisfied by a richer range of accepted time specifications by wtmpdb.
`last -p now` does not work. I've reported this under * #1102101: Argument `last -p <TIME>` not working (UTC / local-time?) https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1102101
Do you want to raise a bug? Worth adding if there is anything else defective (it looks to me that crashed sessions get included, which seems unhelpful).
Additionally, I run into some other issues reported here * #1102102: Argument `last -t <TIME>` not working https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1102102 * #1102105: Argument combination `last -x -s <TIME>` not working https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1102105 Greets, Dirk =)
OpenPGP_signature.asc
Description: OpenPGP digital signature