diff options
-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"); } |