]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
last: (man) correct the descriptions of --present and --since
authorBenno Schulenberg <bensberg@telfort.nl>
Thu, 17 Apr 2025 09:48:16 +0000 (11:48 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 24 Apr 2025 09:51:45 +0000 (11:51 +0200)
Doing `last --present -24h` will show who was logged in around this time
yesterday.  But when doing (what according to the man page is equivalent)
`last --since -24h --until -24h` nothing will be shown -- unless someone
logged in exactly 24 hours ago to the second.

So, correct the descriptions of --present and --since.

This fixes #1896 (https://github.com/util-linux/util-linux/issues/1896).
Reported-by: Finn Krein-Schuch
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
login-utils/last.1.adoc

index 099b281ccb32a499f0f3708b134af92c17cf7060..8da52c766365b0bd637339e3255c94d45c25f507 100644 (file)
@@ -64,13 +64,14 @@ Like *--dns ,* but displays the host's IP number instead of the name.
 Tell *last* how many lines to show.
 
 *-p*, *--present* _time_::
-Display the users who were present at the specified time. This is like using the options *--since* and *--until* together with the same _time_.
+Display the users who were present at the specified time.
 
 *-R*, *--nohostname*::
 Suppresses the display of the hostname field.
 
 *-s*, *--since* _time_::
-Display the state of logins since the specified _time_. This is useful, e.g., to easily determine who was logged in at a particular time. The option is often combined with *--until*.
+Display the state of logins since the specified _time_.
+The option is often combined with *-t*/*--until* to cover a period.
 
 *-t*, *--until* _time_::
 Display the state of logins until the specified _time_.