svn commit: samba r7265 - in branches/SAMBA_4_0/source/lib: .

tridge at samba.org tridge at samba.org
Sat Jun 4 06:45:11 GMT 2005


Author: tridge
Date: 2005-06-04 06:45:11 +0000 (Sat, 04 Jun 2005)
New Revision: 7265

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

Log:
fixed d_printf() so it works again. 

Jelmer, can you give me a hint as to why you changed this? It
completely broke smbclient, and the change now makes d_printf() almost
equivalent to printf() as you removed the language translation
code. See your commit 7166.

Did you intend to reenable language handling by some other method? Or
do you just mean to remove it completely?

Modified:
   branches/SAMBA_4_0/source/lib/dprintf.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/dprintf.c
===================================================================
--- branches/SAMBA_4_0/source/lib/dprintf.c	2005-06-04 05:35:27 UTC (rev 7264)
+++ branches/SAMBA_4_0/source/lib/dprintf.c	2005-06-04 06:45:11 UTC (rev 7265)
@@ -35,12 +35,12 @@
 {
 	char *p, *p2;
 	int ret, maxlen, clen;
-	char *msgstr;
 	va_list ap2;
 
+	/* do any message translations */
 	VA_COPY(ap2, ap);
 
-	ret = vasprintf(&p, msgstr, ap2);
+	ret = vasprintf(&p, format, ap2);
 
 	if (ret <= 0) return ret;
 



More information about the samba-cvs mailing list