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 | 6bf74da8b84a22aaddb0fbb160f02621abba01ba (patch) | |
tree | f3b9bfb43a7fcfd90b634f8b88d6df10c793f65b | |
parent | ebb4f76550062b0ea2005a2b8842641a2c91f528 (diff) | |
download | samba-6bf74da8b84a22aaddb0fbb160f02621abba01ba.tar.gz samba-6bf74da8b84a22aaddb0fbb160f02621abba01ba.tar.xz samba-6bf74da8b84a22aaddb0fbb160f02621abba01ba.zip |
Fix for check_kernel_oplocks looking for the var directory
before it may need to be created.
Jeremy.
-rw-r--r-- | source/smbd/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/server.c b/source/smbd/server.c index 2f6a6ad7eda..7938b00ddc1 100644 --- a/source/smbd/server.c +++ b/source/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"); } |