git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pylibsmb: Fix a typo
[samba.git]
/
source3
/
modules
/
vfs_posix_eadb.c
diff --git
a/source3/modules/vfs_posix_eadb.c
b/source3/modules/vfs_posix_eadb.c
index 34769f58a69e8ad22c84185af3de83f036347672..b3e21b09b8c3647e7c01dce27bce3b4d6f6ca1b9 100644
(file)
--- a/
source3/modules/vfs_posix_eadb.c
+++ b/
source3/modules/vfs_posix_eadb.c
@@
-213,12
+213,12
@@
static bool posix_eadb_init(int snum, struct tdb_wrap **p_db)
lp_ctx = loadparm_init_s3(NULL, loadparm_s3_helpers());
lp_ctx = loadparm_init_s3(NULL, loadparm_s3_helpers());
-
set_effective_capability(DAC_OVERRIDE_CAPABILITY
);
+
become_root(
);
db = tdb_wrap_open(NULL, eadb, 50000,
lpcfg_tdb_flags(lp_ctx, TDB_DEFAULT),
O_RDWR|O_CREAT, 0600);
db = tdb_wrap_open(NULL, eadb, 50000,
lpcfg_tdb_flags(lp_ctx, TDB_DEFAULT),
O_RDWR|O_CREAT, 0600);
-
drop_effective_capability(DAC_OVERRIDE_CAPABILITY
);
+
unbecome_root(
);
talloc_unlink(NULL, lp_ctx);
/* now we know dbname is not NULL */
talloc_unlink(NULL, lp_ctx);
/* now we know dbname is not NULL */