From: Alejandro Colomar Date: Mon, 1 Sep 2025 14:08:11 +0000 (+0200) Subject: man/man3/login.3: ffix X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0fe1123e2d17d66a6afc212157b48d5aeccb9860;p=thirdparty%2Fman-pages.git man/man3/login.3: ffix Reported-by: Helge Kreutzmann Signed-off-by: Alejandro Colomar --- diff --git a/man/man3/login.3 b/man/man3/login.3 index 5f0a33b15..8f2bf8640 100644 --- a/man/man3/login.3 +++ b/man/man3/login.3 @@ -17,8 +17,12 @@ System utilities library .BI "int logout(const char *" ut_line ); .fi .SH DESCRIPTION -The utmp file records who is currently using the system. -The wtmp file records all logins and logouts. +The +.I utmp +file records who is currently using the system. +The +.I wtmp +file records all logins and logouts. See .BR utmp (5). .P @@ -27,11 +31,17 @@ The function takes the supplied .IR "struct utmp" , .IR ut , -and writes it to both the utmp and the wtmp file. +and writes it to both the +.I utmp +and the +.I wtmp +file. .P The function .BR logout () -clears the entry in the utmp file again. +clears the entry in the +.I utmp +file again. .SS GNU details More precisely, .BR login () @@ -53,15 +63,23 @@ It takes the first of that is a terminal, and stores the corresponding pathname minus a possible leading .I /dev/ -into this field, and then writes the struct to the utmp file. +into this field, and then writes the struct to the +.I utmp +file. On the other hand, if no terminal name was found, this field is filled with "???" -and the struct is not written to the utmp file. -After this, the struct is written to the wtmp file. +and the struct is not written to the +.I utmp +file. +After this, the struct is written to the +.I wtmp +file. .P The .BR logout () -function searches the utmp file for an entry matching the +function searches the +.I utmp +file for an entry matching the .I ut_line argument. If a record is found, it is updated by zeroing out the