uid_wrapper: Make sure we have initialized the wrapper.
authorAndreas Schneider <asn@samba.org>
Fri, 7 Oct 2011 16:02:33 +0000 (18:02 +0200)
committerAndreas Schneider <asn@samba.org>
Thu, 27 Oct 2011 11:32:01 +0000 (13:32 +0200)
lib/uid_wrapper/uid_wrapper.c

index 8229fbbd58e422d2a5930f57834ddcdaa2aad10d..aaa21fcb223783dfec0428ed0b5544003f3033f3 100644 (file)
@@ -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;
        }