diff options
author | Herb Lewis <herb@samba.org> | 2000-05-09 22:07:07 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2000-05-09 22:07:07 +0000 |
commit | f7089e3cbaa8429a5dd6f5ecf3f524291faa1881 (patch) | |
tree | 5cf6da3ba38b6532d500513bb0f7673741cb4778 | |
parent | 4fb6ca66771ba402e280eb17de720d0d3a7114cc (diff) | |
download | samba-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)
-rw-r--r-- | source3/smbd/server.c | 4 |
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"); } |