summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2011-06-27 15:44:10 +0200
committerChristian Ambach <ambi@samba.org>2011-06-27 17:09:12 +0200
commit2ff0d5882fe5df0113eaaa4728bab4057a3f324b (patch)
tree37e34763c63bace26201f4ff92076c1e8febd79a
parentebd70d8c4256ce46a3966ce43e8d032f2b455e9d (diff)
downloadsamba-2ff0d5882fe5df0113eaaa4728bab4057a3f324b.tar.gz
samba-2ff0d5882fe5df0113eaaa4728bab4057a3f324b.tar.bz2
samba-2ff0d5882fe5df0113eaaa4728bab4057a3f324b.zip
s3:g_lock: g_lock.tdb should not be executable
TDBs are not executable, so do not create the file with the execution bit set Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Mon Jun 27 17:09:12 CEST 2011 on sn-devel-104
-rw-r--r--source3/lib/g_lock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c
index 006ee3698c..4bda7c8e6c 100644
--- a/source3/lib/g_lock.c
+++ b/source3/lib/g_lock.c
@@ -57,7 +57,8 @@ struct g_lock_ctx *g_lock_ctx_init(TALLOC_CTX *mem_ctx,
result->msg = msg;
result->db = db_open(result, lock_path("g_lock.tdb"), 0,
- TDB_CLEAR_IF_FIRST|TDB_INCOMPATIBLE_HASH, O_RDWR|O_CREAT, 0700);
+ TDB_CLEAR_IF_FIRST|TDB_INCOMPATIBLE_HASH,
+ O_RDWR|O_CREAT, 0600);
if (result->db == NULL) {
DEBUG(1, ("g_lock_init: Could not open g_lock.tdb"));
TALLOC_FREE(result);