summaryrefslogtreecommitdiffstats
path: root/plugins/sudoers/testsudoers_pwutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sudoers/testsudoers_pwutil.c')
-rw-r--r--plugins/sudoers/testsudoers_pwutil.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/sudoers/testsudoers_pwutil.c b/plugins/sudoers/testsudoers_pwutil.c
new file mode 100644
index 0000000..474278d
--- /dev/null
+++ b/plugins/sudoers/testsudoers_pwutil.c
@@ -0,0 +1,10 @@
+/*
+ * Build pwutil_impl.c with a function prefix of "testsudoers_" instead
+ * of "sudo_" and call our custom getpwnam/getpwuid/getgrnam/getgrgid.
+ */
+
+#define PWUTIL_PREFIX testsudoers
+
+#include <testsudoers_pwutil.h>
+#include <tsgetgrpw.h>
+#include "pwutil_impl.c"