]> git.armaanb.net Git - opendoas.git/blobdiff - doas.h
clarify that -L will exit without running a command.
[opendoas.git] / doas.h
diff --git a/doas.h b/doas.h
index 70005eec8cb05ed9ca751ca902ea2205837c9bcc..062c38725583446a49db2668af229f443a103fc6 100644 (file)
--- a/doas.h
+++ b/doas.h
@@ -1,5 +1,4 @@
-/* $OpenBSD: doas.h,v 1.5 2016/06/05 00:46:34 djm Exp $ */
-
+/* $OpenBSD$ */
 struct rule {
        int action;
        int options;
@@ -8,7 +7,6 @@ struct rule {
        const char *cmd;
        const char **cmdargs;
        const char **envlist;
-       const char **setenvlist;
 };
 
 extern struct rule **rules;
@@ -17,9 +15,11 @@ extern int parse_errors;
 
 size_t arraylen(const char **);
 
+char **prepenv(struct rule *);
+
 #define PERMIT 1
 #define DENY   2
 
 #define NOPASS         0x1
 #define KEEPENV                0x2
-#define SETENV         0x4
+#define PERSIST                0x4