From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7286 Path: news.gmane.org!not-for-mail From: John Mudd Newsgroups: gmane.linux.lib.musl.general Subject: Re: who: /dev/null/utmp: Not a directory Date: Sat, 28 Mar 2015 22:30:25 -0400 Message-ID: References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bd758461d66650512642745 X-Trace: ger.gmane.org 1427596275 9868 80.91.229.3 (29 Mar 2015 02:31:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Mar 2015 02:31:15 +0000 (UTC) Cc: John Mudd To: musl Original-X-From: musl-return-7299-gllmg-musl=m.gmane.org@lists.openwall.com Sun Mar 29 04:31:15 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Yc30K-0004N1-Up for gllmg-musl@m.gmane.org; Sun, 29 Mar 2015 04:31:13 +0200 Original-Received: (qmail 7801 invoked by uid 550); 29 Mar 2015 02:31:05 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 7747 invoked from network); 29 Mar 2015 02:30:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=6nNWXYGfkiMTojCVOH3K1TCdp/9oRgqkO+UUttGgpFo=; b=f0ljIAIQuk14YXat2KM/WVLtgJlwbQdxHfrrJp6JcKX3S6tPtU1WmrCdaBNCiISRu3 sVrfZ7oUa3og41GJCAJNupTTaOqX/XNbUdX2ADcZ4N5ajVE4MZLNUIhccMMyhhjpTfsN ZIo77Bf9XDSk8Y3U8mUbDNTxdS41ulkLv/PWzG7F9Bcd/5GnPM8ZX/iMid6FrSAPrRBY nMoNFOQz2mDmh6tKvc43zFIZRVewd1pUHW0jkclJ8+oHfFMD2ly5Z/VHYFHnWUHKqfax 3lBzuGZsYBPRSJ57Av1/ILgQTCGTAcmbvXounljSYVkQBM9J/XwlFe7f66j0qcepHs6r C1KQ== X-Received: by 10.50.29.68 with SMTP id i4mr8539824igh.35.1427596245819; Sat, 28 Mar 2015 19:30:45 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:7286 Archived-At: --047d7bd758461d66650512642745 Content-Type: text/plain; charset=ISO-8859-1 > 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 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 > --047d7bd758461d66650512642745 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
>=A0The intent was/is to avoid the creation of a utmp file since musl does <= /span>not use or supp= ort it.

That's okay. I'll just rename the "who&quo= t; executable and use the rest.=A0I built coreutils mostly for the "so= rt" 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 b= ut I have to ask...

Why not set _PATH_UTMP to /var/run/utmp i= nstead? Or set it at build time based on actual utmp location?

./include/paths.h:#define _PATH_UTMP =A0 =A0"/dev/null/utm= p"
./include/utmp.h:#define _PATH_UTMP "/dev/null/utmp&= quot;

Joh= n

--047d7bd758461d66650512642745--