22c60d0987
pkgsrc change: Add support for DESTDIR. Changes from 3.0.24 are huge, please refer WHATSNEW.txt. <http://viewcvs.samba.org/cgi-bin/viewcvs.cgi/branches/SAMBA_3_0_26/WHATSNEW.txt?rev=22651&view=markup>
23 lines
823 B
Text
23 lines
823 B
Text
$NetBSD: patch-ag,v 1.7 2007/10/28 07:28:46 taca Exp $
|
|
|
|
--- passdb/passdb.c.orig 2007-05-24 00:29:17.000000000 +0900
|
|
+++ passdb/passdb.c
|
|
@@ -135,6 +135,7 @@ static NTSTATUS samu_set_unix_internal(s
|
|
const char *guest_account = lp_guestaccount();
|
|
const char *domain = global_myname();
|
|
uint32 urid;
|
|
+ char *gecos;
|
|
|
|
if ( !pwd ) {
|
|
return NT_STATUS_NO_SUCH_USER;
|
|
@@ -143,7 +144,9 @@ static NTSTATUS samu_set_unix_internal(s
|
|
/* Basic properties based upon the Unix account information */
|
|
|
|
pdb_set_username(user, pwd->pw_name, PDB_SET);
|
|
- pdb_set_fullname(user, pwd->pw_gecos, PDB_SET);
|
|
+ gecos = passwd_expand_gecos(pwd);
|
|
+ pdb_set_fullname(user, gecos, PDB_SET);
|
|
+ SAFE_FREE(gecos);
|
|
pdb_set_domain (user, get_global_sam_name(), PDB_DEFAULT);
|
|
#if 0
|
|
/* This can lead to a primary group of S-1-22-2-XX which
|