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 17:14:49 +0000 (12:14 -0500)
commitdd8ec8725f168f4286bbfc00d69cd56089ba3543
tree963bad0741cccbd6d6a594af47705700410ff2c3
parenta8d398edf0ce08b2a53342e80c2017f1805908d5
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
source/lib/ldb/common/ldb.c
source/lib/ldb/ldb_tdb/ldb_tdb.c