• Bug#1102102: wtmpdb: Argument `last -t

    From Dirk Lehmann@21:1/5 to All on Sat Apr 5 05:00:01 2025
    Package: wtmpdb
    Version: 0.72.0-1
    Severity: normal

    Dear Maintainer,

    the argument `last -t <TIME>` seems not to be implemented yet. Here
    an example:

    ```
    wtmpdb last --since '2025-04-05 00:27:00' --until '2025-04-05 00:28:00'
    dirk tty7 :0 Sat Apr 5 01:27 - 01:48 (00:20) lightdm tty7 :0 Sat Apr 5 01:27 - 01:27 (00:00)
    reboot system boot 6.12.20-amd64 Sat Apr 5 01:27 - still running

    wtmpdb begins Fri Apr 4 19:01:21 2025

    wtmpdb last --since '2025-04-05 00:27:00' -t '2025-04-05 00:28:00'
    Usage: wtmpdb [command] [options]
    Commands: last, boot, boottime, rotate, shutdown, import

    Options for last:
    [...]
    -s, --since TIME Display who was logged in after TIME
    -t, --until TIME Display who was logged in until TIME
    [...]
    ```

    Greets,
    Dirk =)


    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing
    APT policy: (500, 'testing')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.12.20-amd64 (SMP w/20 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_OOT_MODULE
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages wtmpdb depends on:
    ii init-system-helpers 1.68
    ii libaudit1 1:4.0.2-2+b2
    ii libc6 2.41-6
    ii libsystemd0 257.4-3
    ii libwtmpdb0 0.72.0-1

    Versions of packages wtmpdb recommends:
    ii libpam-wtmpdb 0.72.0-1

    wtmpdb suggests no packages.

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew Bower@21:1/5 to Dirk Lehmann on Sat Apr 5 10:40:02 2025
    Control: tags -1 confirmed upstream patch
    Control: forwarded -1 https://github.com/thkukuk/wtmpdb/pull/30

    Hi Dirk,

    Thank you for this bug report!

    On Sat, Apr 05, 2025 at 04:53:47AM +0200, Dirk Lehmann wrote:
    the argument `last -t <TIME>` seems not to be implemented yet. Here
    an example:

    ```
    wtmpdb last --since '2025-04-05 00:27:00' --until '2025-04-05 00:28:00'
    dirk tty7 :0 Sat Apr 5 01:27 - 01:48 (00:20) lightdm tty7 :0 Sat Apr 5 01:27 - 01:27 (00:00) reboot system boot 6.12.20-amd64 Sat Apr 5 01:27 - still running

    wtmpdb begins Fri Apr 4 19:01:21 2025

    wtmpdb last --since '2025-04-05 00:27:00' -t '2025-04-05 00:28:00'
    Usage: wtmpdb [command] [options]
    Commands: last, boot, boottime, rotate, shutdown, import

    Options for last:
    [...]
    -s, --since TIME Display who was logged in after TIME
    -t, --until TIME Display who was logged in until TIME
    [...]
    ```

    I have proposed a patch upstream to fix wtmpdb's handling for the
    'last -t' short option: https://github.com/thkukuk/wtmpdb/pull/30

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEMKYZL6LI55lncG11uqgO2W94h+kFAmfw6fYACgkQuqgO2W94 h+mz3Q//ZzqhYdKvbNEW+9/3cmL54hM1C3liqvyjuluAU5KU9+A9KrDGe93LXCcZ mIQHN2+NohtUQcWiQn4h8IlU8lZn1/ZQKi/TjAjDJF2SrZm62BrWYfJ+o6xiZ9jo m4P5z20qgxTf+U6NdLbCmFpZMVwCMra6mE61g1zoBWuMZYjxhFcQVeRVj5azEchB C2y997LvC11tQB08DM6gYXhYyAtboUGu7RMxFHU8JOJPyTY9NUjgM0kcwgta77Q0 GPeY3UWhBWsDzv5VQByhBcJEuSZcciX3OZ32FffXWvQjsB+UC3BXQbaimYKwoDdh 9oJgTzOU6eakopxy1CSUWzzwXYqvsM4dHEWTTblZdK9i2urCqTm+4/eTx5HumoUe XGBJKwedLC1b5ogxqczbw6sei2C0PzTNttyrj0p2EQn/61HPbU7eloFjtz8qh5As yx00rcq5OI8kJS/H8YnU2Tls9cdraLewA+f23IPWSahWK94RbyYI1ncPLC9ds2fi cRuTSxPi+uEiJFp3BPfhmIFqPZUL/gjZcp4FJkIfOGKJ/tTWOX8MQhH9VVyHnqD7 onSDMWPqNY4iD28vt4KonIfY0EuYudabFQUzpD8y7aEt5h2gJolS8AEaDbaMq3P+ 8BnEMuvffXqYFq2gmX/YdERctcJFyIj8w0Qm+jRM4KyKFMZHAfs=
    =qVJn
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)