This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] putgrent/putpwent and +/- entries


On Tue, Jan 11, Ulrich Drepper wrote:

> Thorsten Kukuk wrote:
> 
> >putpwent and putgrent should not write a '0' as user/group id if an
> >entry starting with + or - is written. We have a check in the get*
> >code to ignore this, but it is better to not write the values and
> >let the fields empty.
> 
> I don't have a problem in principle with this but it needs to be 
> documented that user/group names starting with +- are everywhere treated 
> special.  Provide some text for the manual.


2005-01-12  Thorsten Kukuk  <kukuk@suse.de>

	* manual/users.texi (Writing a User Entry): Document behavior
	of putpwent if user name starts with + or -.

--- manual/users.texi	6 Apr 2002 01:01:48 -0000	1.34
+++ manual/users.texi	12 Jan 2005 09:33:20 -0000
@@ -1690,6 +1690,9 @@
 would inevitably leave out much of the important information.
 @c Then how are programmers to modify the password file? -zw
 
+This implementation leaves the group and user ID field empty if the
+group or user name starts with a - or +.
+
 The function @code{putpwent} is declared in @file{pwd.h}.
 @end deftypefun
 


-- 
Thorsten Kukuk         http://www.suse.de/~kukuk/      kukuk@suse.de
SuSE Linux Products GmbH       Maxfeldstr. 5       D-90409 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]