summaryrefslogtreecommitdiff
path: root/plugins/sudoers/toke.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sudoers/toke.c')
-rw-r--r--plugins/sudoers/toke.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/plugins/sudoers/toke.c b/plugins/sudoers/toke.c
index aa909ca29..700579302 100644
--- a/plugins/sudoers/toke.c
+++ b/plugins/sudoers/toke.c
@@ -5744,8 +5744,8 @@ oflow:
* A missing or insecure include dir is simply ignored.
* Returns false on error, else true.
*/
-bool
-push_include(const char *opath, bool isdir)
+static bool
+push_include_int(const char *opath, bool isdir)
{
struct path_list *pl;
char *path;
@@ -5851,6 +5851,18 @@ push_include(const char *opath, bool isdir)
debug_return_bool(true);
}
+bool
+push_include(const char *opath)
+{
+ return push_include_int(opath, false);
+}
+
+bool
+push_includedir(const char *opath)
+{
+ return push_include_int(opath, true);
+}
+
/*
* Restore the previous sudoers file and buffer, or, in the case
* of an includedir, switch to the next file in the dir.