r18939: don't rely on the umask being right in ldb creation. Both Samba3 and
authorAndrew Tridgell <tridge@samba.org>
Wed, 27 Sep 2006 03:34:50 +0000 (03:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:20:22 +0000 (14:20 -0500)
commit4e7c9367a7f885b685d7d1476c359e5848356f83
treed083a0b26c7129b8d821dfa796b2defb22f20d85
parentc9ae85d19adf5720f4c9b8e8c4fdde434293df67
r18939: don't rely on the umask being right in ldb creation. Both Samba3 and
Samba4 smbd force the umask to 0, which meant we ended up with ldb
being world writable.

This isn't really an ideal fix, as it means ldb no longer honors umask
(as it should do, like all good libraries).

Unfortunately the 'proper' fix is too complex for now

this also merges a tiny code style fix from s4 to s3
(This used to be commit 1a42f38dfdc55d7429a1f8d3e811f3d857195a58)
source4/lib/ldb/ldb_tdb/ldb_tdb.c