*/
#define LOG_INDENT " "
-#ifndef SUDO_MAIN
/* XXX - needed for auditing */
extern int NewArgc;
extern char **NewArgv;
-#endif
bool sudoers_warn_setlocale(bool restore, int *cookie);
bool sudoers_setlocale(int newlocale, int *prevlocale);
int sudoers_policy_init(void *info, char * const envp[]);
int sudoers_policy_main(int argc, char * const argv[], int pwflag, char *env_add[], void *closure);
void sudoers_cleanup(void);
+extern struct sudo_user sudo_user;
+extern struct passwd *list_pw;
+extern int long_list;
+extern int sudo_mode;
+extern uid_t timestamp_uid;
+extern sudo_conv_t sudo_conv;
+extern sudo_printf_t sudo_printf;
/* sudoers_debug.c */
void sudoers_debug_parse_flags(struct sudo_conf_debug_file_list *debug_files, const char *entry);
int group_plugin_query(const char *user, const char *group,
const struct passwd *pwd);
-#ifndef SUDO_MAIN
-extern struct sudo_user sudo_user;
-extern struct passwd *list_pw;
-extern int long_list;
-extern int sudo_mode;
-extern uid_t timestamp_uid;
-extern sudo_conv_t sudo_conv;
-extern sudo_printf_t sudo_printf;
-#endif
-
#endif /* SUDOERS_SUDOERS_H */