summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2000-05-09 22:07:07 +0000
committerHerb Lewis <herb@samba.org>2000-05-09 22:07:07 +0000
commitf7089e3cbaa8429a5dd6f5ecf3f524291faa1881 (patch)
tree5cf6da3ba38b6532d500513bb0f7673741cb4778 /source3
parent4fb6ca66771ba402e280eb17de720d0d3a7114cc (diff)
downloadsamba-f7089e3cbaa8429a5dd6f5ecf3f524291faa1881.tar.gz
samba-f7089e3cbaa8429a5dd6f5ecf3f524291faa1881.tar.bz2
samba-f7089e3cbaa8429a5dd6f5ecf3f524291faa1881.zip
Fix for check_kernel_oplocks looking for the var directory
before it may need to be created. Jeremy. (This used to be commit 6bf74da8b84a22aaddb0fbb160f02621abba01ba)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 2f6a6ad7ed..7938b00ddc 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -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");
}