]> git.armaanb.net Git - opendoas.git/blobdiff - env.c
add a geteuid check to make sure we're root before plowing into setauth. spare some...
[opendoas.git] / env.c
diff --git a/env.c b/env.c
index 42a0d2e1856f8c766c87338ef95b5bd33d74bf3f..23a95f297e8f5f04ce0cc97b203acbc819fbdceb 100644 (file)
--- a/env.c
+++ b/env.c
@@ -82,7 +82,7 @@ createenv(struct rule *rule)
        env->count = 0;
 
        if (rule->options & KEEPENV) {
-               extern const char **environ;
+               extern char **environ;
 
                for (i = 0; environ[i] != NULL; i++) {
                        struct envnode *node;
@@ -195,7 +195,7 @@ prepenv(struct rule *rule)
                NULL
        };
        struct env *env;
-       
+
        env = createenv(rule);
 
        /* if we started with blank, fill some defaults then apply rules */