summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-10-07 18:02:33 +0200
committerAndreas Schneider <asn@samba.org>2011-10-27 13:32:01 +0200
commit4c747183e768d5f5a30aaad5d44d1d0bd0aa67d0 (patch)
tree2fa57b445bfca9e28c72c74d28ded405e5188262 /lib
parent512f705593c1072110b986f24260605e86055caa (diff)
downloadsamba-4c747183e768d5f5a30aaad5d44d1d0bd0aa67d0.tar.gz
samba-4c747183e768d5f5a30aaad5d44d1d0bd0aa67d0.tar.bz2
samba-4c747183e768d5f5a30aaad5d44d1d0bd0aa67d0.zip
uid_wrapper: Make sure we have initialized the wrapper.
Diffstat (limited to 'lib')
-rw-r--r--lib/uid_wrapper/uid_wrapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/uid_wrapper/uid_wrapper.c b/lib/uid_wrapper/uid_wrapper.c
index 8229fbbd58..aaa21fcb22 100644
--- a/lib/uid_wrapper/uid_wrapper.c
+++ b/lib/uid_wrapper/uid_wrapper.c
@@ -50,6 +50,8 @@ static void uwrap_init(void)
if (getenv("UID_WRAPPER")) {
uwrap.enabled = true;
/* put us in one group */
+ uwrap.euid = geteuid();
+ uwrap.egid = getegid();
uwrap.groups = talloc_array(NULL, gid_t, 1);
uwrap.groups[0] = 0;
}