* utmp.h
@ 2019-12-27 2:49 exitworld
2019-12-27 11:53 ` utmp.h A. Wilcox
0 siblings, 1 reply; 2+ messages in thread
From: exitworld @ 2019-12-27 2:49 UTC (permalink / raw)
To: musl
[-- Attachment #1: Type: text/plain, Size: 362 bytes --]
I believe the paths to utmp and wtmp are defined wrong in utmp.h. Right now they are defined in dev/null, when they should be /var/run/utmp and /var/log/wtmp. Please see man utmp(5) and the FHS 5.10.2 and 5.13.2
you can respond if you'd like
thank you,
justin
--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:
https://tutanota.com
[-- Attachment #2: Type: text/html, Size: 641 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: utmp.h
2019-12-27 2:49 utmp.h exitworld
@ 2019-12-27 11:53 ` A. Wilcox
0 siblings, 0 replies; 2+ messages in thread
From: A. Wilcox @ 2019-12-27 11:53 UTC (permalink / raw)
To: musl; +Cc: Justin
[-- Attachment #1.1: Type: text/plain, Size: 1330 bytes --]
On 26/12/2019 20:49, exitworld@tutanota.com wrote:
>
> I believe the paths to utmp and wtmp are defined wrong in utmp.h. Right
> now they are defined in dev/null, when they should be /var/run/utmp and
> /var/log/wtmp. Please see man utmp(5) and the FHS 5.10.2 and 5.13.2
>
> you can respond if you'd like
>
> thank you,
> justin
Hi there Justin,
musl does not implement the utmp/wtmp family of functions itself[1]; it
only provides stubs so that software that uses them can build (but those
functions requiring utmp/wtmp will not work).
For full operation with the utmp(x) functions, you will need to use
something like skarnet's utmps[2], which implements these functions in a
secure manner. Right now, there are only two distributions which offer
utmps: Adélie and NixOS. I am not sure how well-integrated utmps is in
to NixOS, but at Adélie we have fully integrated it and all packages
that utilise the utmp functions work fully as intended.
I hope this helps.
Best,
--arw
[1]:
https://wiki.musl-libc.org/faq.html#Q:-Why-is-the-utmp/wtmp-functionality-only-implemented-as-stubs?
(though we at Adélie, obviously, disagree with the rationale)
[2]: https://skarnet.org/software/utmps/
--
A. Wilcox (awilfox)
Project Lead, Adélie Linux
https://www.adelielinux.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-27 11:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-27 2:49 utmp.h exitworld
2019-12-27 11:53 ` utmp.h A. Wilcox
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).