summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/smbwrapper/smbw.c4
-rw-r--r--source/smbwrapper/smbw_dir.c2
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"));