The Samba-Bugzilla – Attachment 8781 Details for
Bug 9805
s3:lib/server_mutex: open mutex.tdb with CLEAR_IF_FIRST
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch written by Metze incl. cherry-pick information
0001-s3-lib-server_mutex-open-mutex.tdb-with-CLEAR_IF_FIR.patch (text/plain), 1.13 KB, created by
Karolin Seeger
on 2013-04-17 10:02:57 UTC
(
hide
)
Description:
Proposed patch written by Metze incl. cherry-pick information
Filename:
MIME Type:
Creator:
Karolin Seeger
Created:
2013-04-17 10:02:57 UTC
Size:
1.13 KB
patch
obsolete
>From 9313580a12e2252693205470d72d5814ee81d40b Mon Sep 17 00:00:00 2001 >From: Stefan Metzmacher <metze@samba.org> >Date: Thu, 28 Mar 2013 11:04:31 +0100 >Subject: [PATCH] s3:lib/server_mutex: open mutex.tdb with CLEAR_IF_FIRST > >/var/lock/samba is typically on tpmfs. > >Signed-off-by: Stefan Metzmacher <metze@samba.org> >Reviewed-by: Volker Lendecke <vl@samba.org> >(cherry picked from commit 821171e422133d64e7c07b4d610984c33cd23244) >--- > source3/lib/server_mutex.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/source3/lib/server_mutex.c b/source3/lib/server_mutex.c >index 619fbd0..38bf2ca 100644 >--- a/source3/lib/server_mutex.c >+++ b/source3/lib/server_mutex.c >@@ -69,7 +69,10 @@ struct named_mutex *grab_named_mutex(TALLOC_CTX *mem_ctx, const char *name, > } > > result->tdb = tdb_wrap_open(result, lock_path("mutex.tdb"), 0, >- TDB_DEFAULT, O_RDWR|O_CREAT, 0600, lp_ctx); >+ TDB_DEFAULT | >+ TDB_CLEAR_IF_FIRST | >+ TDB_INCOMPATIBLE_HASH, >+ O_RDWR|O_CREAT, 0600, lp_ctx); > talloc_unlink(result, lp_ctx); > if (result->tdb == NULL) { > DEBUG(1, ("Could not open mutex.tdb: %s\n", >-- >1.7.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
metze
:
review+
vl
:
review+
Actions:
View
Attachments on
bug 9805
: 8781