Todd C. Miller
d6282d154a
Update copyright years.
2013-04-24 09:35:02 -04:00
Todd C. Miller
1d7072fe09
Don't include <sys/param.h>. We only needed it for MAXPATHLEN,
...
MAXHOSTNAMELEN and the MIN/MAX macros. We now use PATH_MAX and
HOST_NAME_MAX throughout without falling back on MAXPATHLEN or
MAXHOSTNAMELEN and define our own MIN/MAX macros as needed.
2012-12-04 10:40:47 -05:00
Todd C. Miller
7b3d268687
Call gettext() on parameters for warning()/warningx() instead of
...
having warning() do it for us.
2012-11-25 09:34:04 -05:00
Todd C. Miller
56de023de8
Avoid strerror() when possible and just rely on warning/error
...
to handle errno in the proper locale.
2012-11-09 16:32:29 -05:00
Todd C. Miller
595d3b2651
Display warning/error messages in the user's locale.
2012-11-08 15:37:44 -05:00
Todd C. Miller
21a2f95821
Use stdbool.h instead of rolling our own TRUE/FALSE macros.
2011-12-02 11:27:33 -05:00
Todd C. Miller
f689afb5ee
Fix non-dynamic (no dlopen) sudo build.
2011-11-13 21:24:54 -05:00
Todd C. Miller
839919566e
Add debug_decl/debug_return (almost) everywhere.
...
Remove old sudo_debug() and convert users to sudo_debug_printf().
2011-10-22 14:40:21 -04:00
Todd C. Miller
4f9a93f658
Fix some potential problems found by the clang static analyzer,
...
none serious.
2011-07-28 10:59:37 -04:00
Todd C. Miller
4f22a39803
Load plugins with RTLD_GLOBAL instead of RTLD_LOCAL. This fixes
...
problems with pam modules not having access to symbols provided by
libpam on some platforms. Affects FreeBSD and SLES 10 at least.
2011-06-06 10:53:58 -04:00
Todd C. Miller
42a3966a88
Minor warning/error cleanup
2011-05-18 13:44:36 -04:00
Todd C. Miller
b643b190a7
Prepare sudoers module messages for translation.
2011-05-16 16:32:05 -04:00
Todd C. Miller
c73306983c
Avoid deferencing group_plugin if it is NULL in group_plugin_query().
...
This should not happen.
2010-11-18 17:09:57 -05:00
Todd C. Miller
4b2fb225c0
group plugin init function return TRUE when successful
2010-11-18 17:06:52 -05:00
Todd C. Miller
82453cfdec
Don't try to unload if group_plugin is NULL.
...
Don't call dlclose() if group_handle is NULL
2010-11-12 13:14:35 -05:00
Todd C. Miller
452d8765b2
Zero out group_plugin on unload just to be safe.
2010-11-08 17:48:05 -05:00
Todd C. Miller
da35e5f42f
Unload group plugin if its init function fails.
2010-11-08 17:44:32 -05:00
Todd C. Miller
86a4a5232f
Use HAVE_DLOPEN instead of HAVE_DLFCN_H when determining whether to
...
include the local or system dlfcn.h
2010-10-11 17:39:51 -04:00
Todd C. Miller
751f597b2b
Make this compile correctly when no dlopen is available.
2010-10-11 09:10:10 -04:00
Todd C. Miller
f538ed4e35
Add dlopen() emulation for systems without it.
...
For HP-UX 10, emulate using shl_load().
For others, link sudoers plugin statically and use a lookup
table to emulate dlsym().
2010-09-26 17:41:35 -04:00
Todd C. Miller
4101f2eef0
Quiet a bogus compiler warning.
2010-09-13 11:37:29 -04:00
Todd C. Miller
17dbb33e57
Use RTLD_LAZY instead of RTLD_NOW; was using RTLD_NOW as a debugging aid.
2010-07-02 16:03:21 -04:00
Todd C. Miller
e6b48d415c
Replace built-in non-unix group support with a sudoers group plugin.
...
Include a sample plugin that can read Unix-format group files.
2010-07-02 11:11:25 -04:00