1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-09 00:23:50 +03:00

Fix for check_kernel_oplocks looking for the var directory

before it may need to be created.
Jeremy.
This commit is contained in:
Herb Lewis
-
parent ebb4f76550
commit 6bf74da8b8

View File

@@ -729,12 +729,12 @@ static void usage(char *pname)
become_daemon(); become_daemon();
} }
check_kernel_oplocks();
if (!directory_exist(lp_lockdir(), NULL)) { if (!directory_exist(lp_lockdir(), NULL)) {
mkdir(lp_lockdir(), 0755); mkdir(lp_lockdir(), 0755);
} }
check_kernel_oplocks();
if (is_daemon) { if (is_daemon) {
pidfile_create("smbd"); pidfile_create("smbd");
} }