first pass at updating head branch to be to be the same as the SAMBA_2_0 branch
[kai/samba.git] / source3 / smbwrapper / smbw_dir.c
index 95b2ac4b64260c9610ab563fb8e363ee1ff05cfb..09294282736bcee81802d12c3eaa0e6b63c112e3 100644 (file)
@@ -197,7 +197,7 @@ int smbw_dir_open(const char *fname)
        cur_dir = dir;
 
        slprintf(mask, sizeof(mask)-1, "%s\\*", path);
-       string_sub(mask,"\\\\","\\");
+       all_string_sub(mask,"\\\\","\\",0);
 
        if ((p=strstr(srv->server_name,"#1D"))) {
                DEBUG(4,("doing NetServerEnum\n"));