expanding `&' in struct passwd.pw_gecos

Luke Mewburn luke at mewburn.net
Mon Dec 13 23:20:40 GMT 2004


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.
  | 
  | 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.

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


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/20041214/6b7ab950/attachment.bin


More information about the samba-technical mailing list