Skip to content

Commit 87c193f

Browse files
committed
Correct the order of the strings in SUDOERS_CONTEXT_INITIALIZER.
Fixes GitHub issue #325, a bug introduced in sudo 1.9.15.
1 parent d45071a commit 87c193f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

plugins/sudoers/sudoers.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ struct group_list {
7878

7979
/*
8080
* Parse configuration settings.
81+
* Do not change the order without updating SUDOERS_PARSER_CONFIG_INITIALIZER.
8182
*/
8283
struct sudoers_parser_config {
8384
const char *sudoers_path;
@@ -102,6 +103,7 @@ struct sudoers_parser_config {
102103

103104
/*
104105
* Settings passed in from the sudo front-end.
106+
* Do not change the order without updating SUDOERS_CONTEXT_INITIALIZER.
105107
*/
106108
struct sudoers_plugin_settings {
107109
const char *plugin_dir;
@@ -183,7 +185,7 @@ struct sudoers_runas_context {
183185

184186
#define SUDOERS_CONTEXT_INITIALIZER { \
185187
SUDOERS_PARSER_CONFIG_INITIALIZER, \
186-
{ _PATH_LDAP_CONF, _PATH_LDAP_SECRET, _PATH_SUDO_PLUGIN_DIR } \
188+
{ _PATH_SUDO_PLUGIN_DIR, _PATH_LDAP_CONF, _PATH_LDAP_SECRET } \
187189
}
188190

189191
/*

0 commit comments

Comments
 (0)