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:
parent
7358fb62b8
commit
4f2058175e
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user