CVS update: samba/source/lib

abartlet at samba.org abartlet at samba.org
Tue Mar 9 09:56:34 GMT 2004


Date:	Tue Mar  9 09:56:34 2004
Author:	abartlet

Update of /home/cvs/samba/source/lib
In directory dp.samba.org:/tmp/cvs-serv7507/lib

Modified Files:
      Tag: SAMBA_3_0
	util_str.c 
Log Message:
JRA's recent strstr_m work really badly broke our string_sub code.  

For example:

strstr_m("%v foo bar", "%v") would fail...

only strstr_m("foo %v", "%v") could work.

I wonder what else this broke...

Fix is to move to using strncmp() inside the strstr_m function.

Tested on ASCII only.  

Andrew Bartlett


Revisions:
util_str.c		1.47.2.56 => 1.47.2.57
	http://www.samba.org/cgi-bin/cvsweb/samba/source/lib/util_str.c.diff?r1=1.47.2.56&r2=1.47.2.57


More information about the samba-cvs mailing list