UID_WRAPPER_ROOT=1
-If you set the environment variable to UID_WRAPPER_ROOT=2 before you call
+If you set the environment variable to UID_WRAPPER_MYUID=1 before you call
geteuid() then it will return the real uid.
*/
static uid_t uwrap_geteuid(void)
{
- const char *env = getenv("UID_WRAPPER_ROOT");
+ const char *env = getenv("UID_WRAPPER_MYUID");
struct uwrap_thread *id = uwrap_tls_id;
uid_t uid;
pthread_mutex_unlock(&uwrap_id_mutex);
/* Disable root and return myuid */
- if (env != NULL && env[0] == '2') {
+ if (env != NULL && env[0] == '1') {
uid = uwrap.myuid;
}