1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

r2591: fixed two errors in simple backend found with valgrind

(This used to be commit 1730882b9d2ecff1b65e5fc85961edb300a9ce17)
This commit is contained in:
Andrew Tridgell 2004-09-24 07:28:16 +00:00 committed by Gerald (Jerry) Carter
parent 7358fb62b8
commit 4f2058175e

View File

@ -72,6 +72,8 @@ static NTSTATUS svfs_connect(struct smbsrv_request *req, const char *sharename,
private->next_search_handle = 0;
private->connectpath = talloc_strdup(tcon, lp_pathname(tcon->service));
private->open_files = NULL;
private->ops = ntvfs_backend_byname("simple", NTVFS_DISK);
private->search = NULL;
/* the directory must exist */
if (stat(private->connectpath, &st) != 0 || !S_ISDIR(st.st_mode)) {