Fix for check_kernel_oplocks looking for the var directory
authorHerb Lewis <herb@samba.org>
Tue, 9 May 2000 22:07:07 +0000 (22:07 +0000)
committerHerb Lewis <herb@samba.org>
Tue, 9 May 2000 22:07:07 +0000 (22:07 +0000)
before it may need to be created.
Jeremy.

source/smbd/server.c

index 2f6a6ad7eda3dbb3dae6b8ea8574483ef8838cea..7938b00ddc101ce6421a7bdcbf73fcbd44e53c0f 100644 (file)
@@ -729,12 +729,12 @@ static void usage(char *pname)
                become_daemon();
        }
 
-       check_kernel_oplocks();
-
        if (!directory_exist(lp_lockdir(), NULL)) {
                mkdir(lp_lockdir(), 0755);
        }
 
+       check_kernel_oplocks();
+
        if (is_daemon) {
                pidfile_create("smbd");
        }