summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-09 00:17:16 +0000
committerJeremy Allison <jra@samba.org>2004-03-09 00:17:16 +0000
commitfe5801d065a140dc79bec3ff4c41024470ab5cfd (patch)
treec263796ab285d7122bbea5f9ad66bea02ef8fd66 /source3/lib/util.c
parent2337d3e1a543724083d11897de296b91200906ab (diff)
downloadsamba-fe5801d065a140dc79bec3ff4c41024470ab5cfd.tar.gz
samba-fe5801d065a140dc79bec3ff4c41024470ab5cfd.tar.bz2
samba-fe5801d065a140dc79bec3ff4c41024470ab5cfd.zip
Added strstr_m() function. Use in all places where we might run into mb
(should fix the mb service name problem, can't remember the bugid). Jeremy. (This used to be commit 93c2d50f1adbf257c0c0185b420a1d73d56be2f9)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index f169a3103e..3a8d627ee9 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -551,7 +551,7 @@ void dos_clean_name(char *s)
/* remove any double slashes */
all_string_sub(s, "\\\\", "\\", 0);
- while ((p = strstr(s,"\\..\\")) != NULL) {
+ while ((p = strstr_m(s,"\\..\\")) != NULL) {
pstring s1;
*p = 0;
@@ -589,7 +589,7 @@ void unix_clean_name(char *s)
pstrcpy(s,"./");
}
- while ((p = strstr(s,"/../")) != NULL) {
+ while ((p = strstr_m(s,"/../")) != NULL) {
pstring s1;
*p = 0;