svn commit: samba r19632 - in branches/SAMBA_4_0/source/heimdal/lib/hdb: .

abartlet at samba.org abartlet at samba.org
Wed Nov 8 01:43:24 GMT 2006


Author: abartlet
Date: 2006-11-08 01:43:23 +0000 (Wed, 08 Nov 2006)
New Revision: 19632

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19632

Log:
This got missed in the heimdal merge.  Without this, we don't keep the
full database name.  The existing code (needed for when we use the HDB
as a keytab, such as for the kpasswd service) only works for HDB
keytabs not prefixed with a type.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/heimdal/lib/hdb/keytab.c


Changeset:
Modified: branches/SAMBA_4_0/source/heimdal/lib/hdb/keytab.c
===================================================================
--- branches/SAMBA_4_0/source/heimdal/lib/hdb/keytab.c	2006-11-08 01:37:28 UTC (rev 19631)
+++ branches/SAMBA_4_0/source/heimdal/lib/hdb/keytab.c	2006-11-08 01:43:23 UTC (rev 19632)
@@ -59,7 +59,7 @@
 	return ENOMEM;
     }
     db = name;
-    mkey = strchr(name, ':');
+    mkey = strrchr(name, ':');
     if(mkey == NULL || mkey[1] == '\0') {
 	if(*name == '\0')
 	    d->dbname = NULL;



More information about the samba-cvs mailing list