diff options
| author | Alejandro Colomar <alx@kernel.org> | 2025-08-19 13:40:01 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2025-09-21 16:26:15 +0200 |
| commit | f17990c243eafc1891ff692f90b6ce42e6449be8 (patch) | |
| tree | 62e0e0242db019d77d263bd60a99c7b47a697d1f /man/man3/getlogin.3 | |
| parent | dbc3270a88165851aa5e7ab5d1f99dc1acb9624d (diff) | |
| download | man-pages-f17990c243eafc1891ff692f90b6ce42e6449be8.tar.gz | |
man/: Use semantic newlines
And fix related issues while at it.
Silence false positives with \&.
Reported-by: `make lint-man-semnl`
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man3/getlogin.3')
| -rw-r--r-- | man/man3/getlogin.3 | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/man/man3/getlogin.3 b/man/man3/getlogin.3 index ea17967cd5..e9fb60fae2 100644 --- a/man/man3/getlogin.3 +++ b/man/man3/getlogin.3 @@ -64,11 +64,14 @@ If .I string is not a null pointer, it should be an array that can hold at least .B L_cuserid -characters; the string is returned in this array. -Otherwise, a pointer to a string in a static area is returned. -This -string is statically allocated and might be overwritten on subsequent -calls to this function or to +characters; +the string is returned in this array. +Otherwise, +a pointer to a string in a static area is returned. +This string is statically allocated +and might be overwritten +on subsequent calls to this function +or to .BR getlogin (). .P The macro @@ -256,11 +259,13 @@ is redirected.) .P Nobody knows precisely what .BR cuserid () -does; avoid it in portable programs. -Or avoid it altogether: use +does; +avoid it in portable programs. +Or avoid it altogether: +use .I getpwuid(geteuid()) -instead, if that is -what you meant. +instead, +if that is what you meant. .B Do not use .BR cuserid (). .SH SEE ALSO |
