From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: Design for extensible passwd[/shadow?] db support
Date: Mon, 13 Aug 2012 15:28:33 -0400 [thread overview]
Message-ID: <20120813192833.GY27715@brightrain.aerifal.cx> (raw)
In-Reply-To: <cd933c8b5ad2b91d27234dcac8c0adc3@exys.org>
On Mon, Aug 13, 2012 at 09:22:07PM +0200, Arvid E. Picciani wrote:
> On Mon, 13 Aug 2012 09:50:48 -0400, Rich Felker wrote:
>
> >Well that's up to the Austin Group, not you. We implement POSIX.
>
> fair enough. Now that i think of it, pulling out getpwent might not
> be such a smart idea after all, considered that projects would need
> musl specific build instructions then.
Indeed.
Of course, one possible course of action would be not to support
anything but flat files like we do now, and require a library
replacing getpw* that admins would have to link to get other lookup
methods. But I think it we can do it in ~50 lines of clean code inside
libc, that's a lot better (and it avoids the issue of having to worry
about whether the static binary you're passing around supports
different lookup methods).
> >Making /bin/ls depend on dynamic loading modules is a bit
> >disgusting...
>
> huh? yeah exactly my point. Why does /bin/ls load the passwd stuff
> in the first place?
> It really shouldn't be in libc :/
It reads it because ls -l prints the owners of files, and seeing a
username rather than a number is a lot more informative. Being able to
identify the owner of files by name rather than just as a number seems
like an important core system functionality to me...
Rich
next prev parent reply other threads:[~2012-08-13 19:28 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-12 5:38 Rich Felker
2012-08-12 15:16 ` Jeremy Huntwork
2012-08-12 17:27 ` Rich Felker
2012-08-12 17:34 ` Rich Felker
2012-08-12 19:10 ` Arvid E. Picciani
2012-08-12 20:56 ` Rich Felker
2012-08-13 9:41 ` Arvid E. Picciani
2012-08-13 12:27 ` Luca Barbato
2012-08-13 12:46 ` Kurt H Maier
2012-08-13 13:50 ` Rich Felker
2012-08-13 19:22 ` Arvid E. Picciani
2012-08-13 19:28 ` Rich Felker [this message]
2012-08-13 19:38 ` Arvid E. Picciani
2012-08-13 19:50 ` Rich Felker
2012-08-13 20:14 ` Arvid E. Picciani
2012-08-13 21:03 ` Rich Felker
2012-08-13 22:10 ` Luca Barbato
2012-08-13 0:26 idunham
2012-08-13 0:31 ` Rich Felker
2012-08-13 10:45 ` Daniel Cegiełka
2012-08-13 13:46 ` Rich Felker
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=20120813192833.GY27715@brightrain.aerifal.cx \
--to=dalias@aerifal.cx \
--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).