From: John Mudd <johnbmudd@gmail.com>
To: musl <musl@lists.openwall.com>
Cc: John Mudd <johnbmudd@gmail.com>
Subject: Re: who: /dev/null/utmp: Not a directory
Date: Sat, 28 Mar 2015 22:30:25 -0400 [thread overview]
Message-ID: <CAGDMk9F0U4UEWDLfESQfxjWCUsN-+KPgONYARehMOguBsHsVXQ@mail.gmail.com> (raw)
In-Reply-To: <CAGDMk9F-sfsBBjGexb4x_vj3E2nfF5NUnHSc72m+VCwGXKrdiA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 848 bytes --]
> The intent was/is to avoid the creation of a utmp file since musl does not
use or support it.
That's okay. I'll just rename the "who" executable and use the rest. I
built coreutils mostly for the "sort" program. I can use the standard "who".
How about change "/dev/null/utmp" to
""/dev/null/musl_does_not_support_utmp". Same for wtmp. And add a comment
where the file is specified in the headers?
On Sat, Mar 28, 2015 at 5:26 PM, John Mudd <johnbmudd@gmail.com> wrote:
> I got the error when trying to run "who" from musl compiled coreutils
> package. I assume there's a good reason but I have to ask...
>
> Why not set _PATH_UTMP to /var/run/utmp instead? Or set it at build time
> based on actual utmp location?
>
> ./include/paths.h:#define _PATH_UTMP "/dev/null/utmp"
> ./include/utmp.h:#define _PATH_UTMP "/dev/null/utmp"
>
> John
>
[-- Attachment #2: Type: text/html, Size: 1903 bytes --]
prev parent reply other threads:[~2015-03-29 2:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-28 21:26 John Mudd
2015-03-28 21:37 ` Rich Felker
2015-03-29 2:30 ` John Mudd [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGDMk9F0U4UEWDLfESQfxjWCUsN-+KPgONYARehMOguBsHsVXQ@mail.gmail.com \
--to=johnbmudd@gmail.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).