projects
/
sudo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6841616
)
In cb_sudoers_locale() actually set the locale in addition to storing
author
Todd C. Miller
<Todd.Miller@courtesan.com>
Wed, 20 Jul 2016 19:36:45 +0000
(13:36 -0600)
committer
Todd C. Miller
<Todd.Miller@courtesan.com>
Wed, 20 Jul 2016 19:36:45 +0000
(13:36 -0600)
its name. Otherwise, it won't take effect until sudoers lookup time.
plugins/sudoers/sudoers.c
patch
|
blob
|
history
diff --git
a/plugins/sudoers/sudoers.c
b/plugins/sudoers/sudoers.c
index d71401b0cea6d46afbede2f08ae9f6e02e108c61..58b7985c7e1e3b3efcb242620f90f64a019b5205 100644
(file)
--- a/
plugins/sudoers/sudoers.c
+++ b/
plugins/sudoers/sudoers.c
@@
-1194,7
+1194,11
@@
cb_sudoers_locale(const union sudo_defs_val *sd_un)
{
debug_decl(cb_sudoers_locale, SUDOERS_DEBUG_PLUGIN)
- debug_return_bool(sudoers_initlocale(NULL, sd_un->str));
+ if (sudoers_initlocale(NULL, sd_un->str)) {
+ if (setlocale(LC_ALL, sd_un->str) != NULL)
+ debug_return_bool(true);
+ }
+ debug_return_bool(false);
}
/*