From 782cfb68acb26ff012fbd341c7c16b0e2153da22 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 19 Jul 1999 15:30:15 +0000 Subject: more places where all_string_sub() is needed --- source/smbwrapper/smbw.c | 4 ++-- source/smbwrapper/smbw_dir.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/smbwrapper/smbw.c b/source/smbwrapper/smbw.c index 5b1fc7894fa..fe9d267ddf5 100644 --- a/source/smbwrapper/smbw.c +++ b/source/smbwrapper/smbw.c @@ -93,7 +93,7 @@ void smbw_init(void) if ((p=smbw_getshared("PREFIX"))) { slprintf(smbw_prefix,sizeof(fstring)-1, "/%s/", p); - fstring_sub(smbw_prefix,"//", "/"); + all_string_sub(smbw_prefix,"//", "/", 0); DEBUG(2,("SMBW_PREFIX is %s\n", smbw_prefix)); } @@ -320,7 +320,7 @@ char *smbw_parse_path(const char *fname, char *server, char *share, char *path) pstrcpy(path,p); - pstring_sub(path, "/", "\\"); + all_string_sub(path, "/", "\\", 0); ok: DEBUG(4,("parsed path name=%s cwd=%s [%s] [%s] [%s]\n", diff --git a/source/smbwrapper/smbw_dir.c b/source/smbwrapper/smbw_dir.c index 87f8d07743a..09294282736 100644 --- a/source/smbwrapper/smbw_dir.c +++ b/source/smbwrapper/smbw_dir.c @@ -197,7 +197,7 @@ int smbw_dir_open(const char *fname) cur_dir = dir; slprintf(mask, sizeof(mask)-1, "%s\\*", path); - pstring_sub(mask,"\\\\","\\"); + all_string_sub(mask,"\\\\","\\",0); if ((p=strstr(srv->server_name,"#1D"))) { DEBUG(4,("doing NetServerEnum\n")); -- cgit