svn commit: samba r8005 - in
branches/SAMBA_4_0/source/lib/ldb/common: .
tridge at samba.org
tridge at samba.org
Thu Jun 30 01:57:58 GMT 2005
Author: tridge
Date: 2005-06-30 01:57:57 +0000 (Thu, 30 Jun 2005)
New Revision: 8005
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8005
Log:
escape '"' characters in ldap expressions. Makes scripting easier.
Modified:
branches/SAMBA_4_0/source/lib/ldb/common/ldb_parse.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_parse.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_parse.c 2005-06-30 01:36:02 UTC (rev 8004)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_parse.c 2005-06-30 01:57:57 UTC (rev 8005)
@@ -172,7 +172,7 @@
unsigned char *buf = val.data;
for (i=0;i<val.length;i++) {
- if (!isprint(buf[i]) || strchr(" *()\\&|!", buf[i])) {
+ if (!isprint(buf[i]) || strchr(" *()\\&|!\"", buf[i])) {
len += 2;
}
}
@@ -181,7 +181,7 @@
len = 0;
for (i=0;i<val.length;i++) {
- if (!isprint(buf[i]) || strchr(" *()\\&|!", buf[i])) {
+ if (!isprint(buf[i]) || strchr(" *()\\&|!\"", buf[i])) {
snprintf(ret+len, 4, "\\%02X", buf[i]);
len += 3;
} else {
More information about the samba-cvs
mailing list