> When you change to the SAMBA private directory on a shell (default
> /usr/local/samba/private) and start there for example ldbedit with the sam.ldb,
> the application crashes if you don't put the "./" before the filename.
I've adapted Matthias's patch.
Andrew Bartlett
}
if ( (p = strrchr(path, '/')) != NULL) {
p[0] = '\0';
+ full_name = talloc_asprintf(mem_ctx, "%s/%s", path, name);
} else {
- talloc_free(path);
- return NULL;
+ full_name = talloc_asprintf(mem_ctx, "./%s", name);
}
- full_name = talloc_asprintf(mem_ctx, "%s/%s", path, name);
talloc_free(path);
return full_name;
}