expanding `&' in struct passwd.pw_gecos

Tim Potter tpot at samba.org
Sun Dec 19 00:15:29 GMT 2004


On Tue, 2004-12-14 at 10:20 +1100, Luke Mewburn wrote:
> On Wed, Dec 01, 2004 at 03:20:20PM +1100, Luke Mewburn wrote:
>   | Various systems (SunOS 4, Solaris, NetBSD, FreeBSD, ...)
>   | support the replacment of occurrences `&' in the pw_gecos
>   | field with the pw_name field.  (See passwd(4) / passwd(5)).
>   | 
>   | Unfortunately this wasn't done inside the getpwent(3) API,
>   | relying upon the end-applications to do this conversion.

> I submitted bug #2154 with an attached patch.
> It implements a new 'passwd expand gecos = <boolean>' global.

I'm planning to apply this patch soon, unless anyone has any objections.
The default for the new parameter is false (i.e no expansion is done).


Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20041219/063e30f4/attachment.bin


More information about the samba-technical mailing list