expanding `&' in struct passwd.pw_gecos

Luke Mewburn luke at mewburn.net
Wed Dec 1 04:20:20 GMT 2004


Hi all.

[I've been going through a bunch of local changes --
 from NetBSD pkgsrc and actual "local" -- and evaluating
 them in order to feed them back into the mainline code.]

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.

Samba 3 currently does _not_ have the ability to perform this
translation.  As a matter of "style", should such an
enhancement be:
    a)	on all the time?
    b)	controlled by an smb.conf(5) global?
    c)	controlled by a compile-time constant?

Once I know the "preferred" way to implement this I'll whip
up a patch and submit it into bugzilla.

Cheers,
Luke.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20041201/627fea83/attachment.bin


More information about the samba-technical mailing list