[BACK]Return to patch-ag CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / samba30 / patches

File: [cvs.NetBSD.org] / pkgsrc / net / samba30 / patches / Attic / patch-ag (download)

Revision 1.1.1.1 (vendor branch), Thu Dec 15 22:23:24 2011 UTC (11 years, 1 month ago) by asau
Branch: TNF
CVS Tags: pkgsrc-base, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4
Changes since 1.1: +0 -0 lines

Reimport Samba 3.0.37 from net/samba as net/samba30 as part of Samba packages rotation.

$NetBSD: patch-ag,v 1.1.1.1 2011/12/15 22:23:24 asau 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