From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7280 Path: news.gmane.org!not-for-mail From: John Mudd Newsgroups: gmane.linux.lib.musl.general Subject: who: /dev/null/utmp: Not a directory Date: Sat, 28 Mar 2015 17:26:06 -0400 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e015383fcc308d505125fe600 X-Trace: ger.gmane.org 1427578040 10146 80.91.229.3 (28 Mar 2015 21:27:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Mar 2015 21:27:20 +0000 (UTC) Cc: John Mudd To: musl Original-X-From: musl-return-7293-gllmg-musl=m.gmane.org@lists.openwall.com Sat Mar 28 22:27:19 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 1YbyGD-0000Fe-Pq for gllmg-musl@m.gmane.org; Sat, 28 Mar 2015 22:27:17 +0100 Original-Received: (qmail 25664 invoked by uid 550); 28 Mar 2015 21:27:15 -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 24420 invoked from network); 28 Mar 2015 21:26:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc:content-type; bh=ZvsPC9vo4fXNtO8oY3cCe9cRrs+Vo9JCNmtZ16ckff8=; b=KO2CyoqlhPXhguM1BmvRjWHeNPjAchuA2JQLCsVQ/kUPz+4cBGKOwHcDv4Ec04BheG nUTxPta7XkPrZfCrJdUfPw03Tutq6JlUf+Gh4AsKTYnvvwWpvXV5gXKrVg+WTDwxupNe /KvlCV33peXgLLWC7rMnbQj5+v54QwiC+4OTxkY8gS02QQHJL3e9hf1gxOwJMjzaOqUx uj4wiJmrHNCrDHP+D3/IJTrue/LLJo6COwLjZOyumGemQqqB1D8rqf1pZbKwVYyRB314 3pPjNlBXeW1TFP2JLeWRZJ61uPJsqtEwb2D43smVmJQEzFUAJ0FDCLeq68rHnh6AgIeX iASQ== X-Received: by 10.50.122.68 with SMTP id lq4mr7541527igb.10.1427577986285; Sat, 28 Mar 2015 14:26:26 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:7280 Archived-At: --089e015383fcc308d505125fe600 Content-Type: text/plain; charset=ISO-8859-1 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 --089e015383fcc308d505125fe600 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I got the error when trying to run "who" from mu= sl compiled coreutils package. I assume there's a good reason but I hav= e to ask...

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

<= div>./include/paths.h:#define _PATH_UTMP =A0 =A0"/dev/null/utmp"<= /div>
./include/utmp.h:#define _PATH_UTMP "/dev/null/utmp"

John
--089e015383fcc308d505125fe600--