git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
512f705
)
uid_wrapper: Make sure we have initialized the wrapper.
author
Andreas Schneider
<asn@samba.org>
Fri, 7 Oct 2011 16:02:33 +0000
(18:02 +0200)
committer
Andreas Schneider
<asn@samba.org>
Thu, 27 Oct 2011 11:32:01 +0000
(13:32 +0200)
lib/uid_wrapper/uid_wrapper.c
patch
|
blob
|
history
diff --git
a/lib/uid_wrapper/uid_wrapper.c
b/lib/uid_wrapper/uid_wrapper.c
index 8229fbbd58e422d2a5930f57834ddcdaa2aad10d..aaa21fcb223783dfec0428ed0b5544003f3033f3 100644
(file)
--- 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;
}