Todd C. Miller
12a1b672c0
We must include gettext.h before missing.h as it includes system
...
headers. Also add missing DEFAULT_TEXT_DOMAIN defines in sudoers
audit code that does not include sudoers.h.
2014-02-11 09:40:59 -07:00
Todd C. Miller
96eb2c4f8f
Add warning_gettext() wrapper function that changes to the user locale,
...
then calls gettext().
Add U_ macro that calls warning_gettext() instead of gettext().
Rename warning2()/error2() back to warning_nodebug()/error_nodebug().
2013-11-18 08:59:57 -07:00
Todd C. Miller
99352d6738
Rename error.h -> fatal.h now that there is no error() function.
2013-08-15 14:24:29 -06:00
Todd C. Miller
2f251caf47
Fix compilation on Solaris 11.
2013-08-15 10:39:40 -06:00
Todd C. Miller
251c79a77b
Add missing missing.h
2013-08-15 10:08:27 -06:00
Todd C. Miller
d6282d154a
Update copyright years.
2013-04-24 09:35:02 -04:00
Todd C. Miller
d913fe69c2
Change "foo: failed" to just "foo" since we print the string form
...
of errno. Gets rids of some useless translations.
2013-04-19 09:55:48 -04:00
Todd C. Miller
39acd2fcba
Rename error/errorx -> fatal/fatalx and remove the exit value as
...
it was always 1.
2013-04-18 14:07:59 -04:00
Todd C. Miller
8d2c791806
Use same error message for getauid() failure.
2013-04-11 08:54:39 -04:00
Todd C. Miller
5ff23fb854
Use error() instead of log_fatal()
2012-03-28 13:47:49 -04:00
Todd C. Miller
44ce5720de
Remove the NO_EXIT flag to log_error() and add a log_fatal() function
...
that exits and is marked no_return. Fixes false positives from
static analyzers and is easier for humans to read too.
2012-03-26 10:59:14 -04:00
Todd C. Miller
d5571aa1e0
Need to include gettext.h and sudo_debug.h; from John Hein
2012-01-09 12:36:43 -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
b643b190a7
Prepare sudoers module messages for translation.
2011-05-16 16:32:05 -04:00
Todd C. Miller
53da5e8cdf
Update copyright years.
2011-03-11 15:34:35 -05:00
Todd C. Miller
ae2f7638f5
standardize on "return foo;" rather than "return(foo);" or "return (foo);"
2011-01-24 15:15:18 -05:00
Todd C. Miller
77eb8cfe5b
Use __sun for consistency with the rest of the sources.
2010-09-13 11:49:10 -04:00
Todd C. Miller
d9a3526320
Solaris BSM audit return EINVAL when auditing is not enabled, whereas
...
OpenBSM returns ENOSYS.
2010-09-08 09:47:00 -04:00
Todd C. Miller
2cd108304d
Add Linux audit support.
2010-06-16 11:17:02 -04:00
Todd C. Miller
b72a530fd0
Update copyright year
2010-06-14 12:19:49 -04:00
Todd C. Miller
5475020561
Move audit sources into the sudoers plugin dir; the driver does not use them.
2010-04-30 15:38:33 -04:00