diff options
author | Andreas Schneider <asn@samba.org> | 2011-10-07 18:02:33 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2011-10-27 13:32:01 +0200 |
commit | 4c747183e768d5f5a30aaad5d44d1d0bd0aa67d0 (patch) | |
tree | 2fa57b445bfca9e28c72c74d28ded405e5188262 /lib | |
parent | 512f705593c1072110b986f24260605e86055caa (diff) | |
download | samba-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.c | 2 |
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; } |