bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1224: [PATCH] user/group name completion


From: Sven Joachim
Subject: bug#1224: [PATCH] user/group name completion
Date: Sun, 12 Jul 2009 22:29:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.96 (gnu/linux)

On 2009-07-12 21:54 +0200, Eli Zaretskii wrote:

>> From: Chong Yidong <address@hidden>
>> Date: Sun, 12 Jul 2009 15:17:25 -0400
>> Cc: address@hidden
>> 
>> The other part of your patch, adding functions to the C code that call
>> getpwent and getgrent, may be useful.  But I don't see the advantage
>> over parsing /etc/passwd or /etc/group manually (or calling a shell
>> command that does it).
>
> The advantage is that getpwent and getgrent are more portable, of
> course.
>
> Only Posix systems can be trusted to actually have /etc/passwd and
> /etc/groups.

And even on those systems these files do not necessarily hold the user
database, there is NIS, LDAP,...

> On systems where these files are absent, we can still
> have the C APIs (or craft our owns inside Emacs, as w32.c does).

Please use them everywhere, manually parsing /etc/passwd and /etc/group
is broken behavior.

Sven





reply via email to

[Prev in Thread] Current Thread [Next in Thread]