]> granicus.if.org Git - sudo/log
sudo
10 years agoRename log_warning flags and only send mail if SLOG_SEND_MAIL is
Todd C. Miller [Sat, 3 May 2014 02:54:01 +0000 (20:54 -0600)]
Rename log_warning flags and only send mail if SLOG_SEND_MAIL is
set instead of mailing by default like we used to.

10 years agoAdd log_warningx
Todd C. Miller [Fri, 2 May 2014 22:40:30 +0000 (16:40 -0600)]
Add log_warningx

10 years agoAdd debugging info for when we delete I/O events that still have
Todd C. Miller [Fri, 2 May 2014 20:58:01 +0000 (14:58 -0600)]
Add debugging info for when we delete I/O events that still have
buffered data in them.

10 years agoFix non-blocking mode. We only want to exit the event loop when
Todd C. Miller [Fri, 2 May 2014 20:57:36 +0000 (14:57 -0600)]
Fix non-blocking mode.  We only want to exit the event loop when
poll() or select() returns 0 and there are no active events.  This
fixes a problem on some systems where the last buffer was not being
written when the command exited.

10 years agoChange return value of switch_dir() to an int so we can distinguish
Todd C. Miller [Fri, 2 May 2014 13:57:29 +0000 (07:57 -0600)]
Change return value of switch_dir() to an int so we can distinguish
between an error and an empty dir in push_includedir().

10 years agoMove code to fill in the list of dirs out of switch_dir and into
Todd C. Miller [Fri, 2 May 2014 13:14:06 +0000 (07:14 -0600)]
Move code to fill in the list of dirs out of switch_dir and into
its own function.  Quiets a false positive from cppcheck which got
confused due to variable reuse.

10 years agoAvoid unused variable warning if auditing is not supported.
Todd C. Miller [Fri, 2 May 2014 11:25:57 +0000 (05:25 -0600)]
Avoid unused variable warning if auditing is not supported.

10 years agoFix library order when linking binaries.
Todd C. Miller [Thu, 1 May 2014 16:04:09 +0000 (10:04 -0600)]
Fix library order when linking binaries.

10 years agoInclude limits.h and inttypes.h for SIZE_MAX define.
Todd C. Miller [Thu, 1 May 2014 15:51:49 +0000 (09:51 -0600)]
Include limits.h and inttypes.h for SIZE_MAX define.

10 years agoMove SIZE_MAX compat define into missing.h where it belongs.
Todd C. Miller [Thu, 1 May 2014 14:38:43 +0000 (08:38 -0600)]
Move SIZE_MAX compat define into missing.h where it belongs.

10 years agoRemove now-unused log_fatal()
Todd C. Miller [Wed, 30 Apr 2014 23:00:20 +0000 (17:00 -0600)]
Remove now-unused log_fatal()

10 years agoEliminate calls to fatal()/fatalx()/log_fatal() in env.c and just
Todd C. Miller [Wed, 30 Apr 2014 22:57:12 +0000 (16:57 -0600)]
Eliminate calls to fatal()/fatalx()/log_fatal() in env.c and just
pass back a return value.

10 years agoMake get_boottime() return bool.
Todd C. Miller [Mon, 28 Apr 2014 14:40:32 +0000 (08:40 -0600)]
Make get_boottime() return bool.

10 years agoFix fd leak on Linux when determing boot time. This is usually
Todd C. Miller [Mon, 28 Apr 2014 14:36:22 +0000 (08:36 -0600)]
Fix fd leak on Linux when determing boot time.  This is usually
masked by the closefrom() call in sudo.  From Jamie Anderson.
Bug #645

10 years agoHandle the (currently impossible) case where both BSM and Linux
Todd C. Miller [Thu, 24 Apr 2014 17:17:05 +0000 (11:17 -0600)]
Handle the (currently impossible) case where both BSM and Linux
auditing are supported.  Pacifies cppcheck.

10 years agoDon't call ferror() on a closed stream, just check the return value
Todd C. Miller [Thu, 24 Apr 2014 17:12:18 +0000 (11:12 -0600)]
Don't call ferror() on a closed stream, just check the return value
of fclose() instead.  Found by cppcheck.

10 years agoUse calloc() instead of malloc(n * s) followed by memset().
Todd C. Miller [Tue, 22 Apr 2014 22:06:04 +0000 (16:06 -0600)]
Use calloc() instead of malloc(n * s) followed by memset().
From Jean-Philippe Ouellet.

10 years agoFormat string safety in error path.
Todd C. Miller [Tue, 22 Apr 2014 22:03:57 +0000 (16:03 -0600)]
Format string safety in error path.

10 years agoRename emalloc2() -> emallocarray() and erealloc3() -> ereallocarray().
Todd C. Miller [Tue, 22 Apr 2014 22:02:28 +0000 (16:02 -0600)]
Rename emalloc2() -> emallocarray() and erealloc3() -> ereallocarray().

10 years agoAdd missing rule for building sha2.lo when not supported by libc or libmd.
Todd C. Miller [Tue, 22 Apr 2014 15:18:43 +0000 (09:18 -0600)]
Add missing rule for building sha2.lo when not supported by libc or libmd.

10 years agoDisable I/O logging for halt and poweroff in addition to reboot in
Todd C. Miller [Tue, 15 Apr 2014 17:26:01 +0000 (11:26 -0600)]
Disable I/O logging for halt and poweroff in addition to reboot in
commented out example.

10 years agoUse PAM_REINITIALIZE_CRED instead of PAM_ESTABLISH_CRED when
Todd C. Miller [Tue, 15 Apr 2014 13:16:57 +0000 (07:16 -0600)]
Use PAM_REINITIALIZE_CRED instead of PAM_ESTABLISH_CRED when
changing the user.  This is the correct flag to use with
a program that changes the uid like su or sudo and fixes a
role problem on Solaris.  From Gary Winiger; Bug #642

10 years agopam_setcred should default to true; from Gary Winiger
Todd C. Miller [Tue, 15 Apr 2014 13:11:29 +0000 (07:11 -0600)]
pam_setcred should default to true; from Gary Winiger
Bug #642

10 years agoMake set_perms() and restore_perms() return an error instead of
Todd C. Miller [Thu, 10 Apr 2014 22:11:47 +0000 (16:11 -0600)]
Make set_perms() and restore_perms() return an error instead of
calling exit() on failure.

10 years agoEliminate calls to fatal() in sudoers.c and just pass back a return
Todd C. Miller [Thu, 10 Apr 2014 22:03:26 +0000 (16:03 -0600)]
Eliminate calls to fatal() in sudoers.c and just pass back a return
value.

10 years agoElimate calls to fatal() in the logging code.
Todd C. Miller [Thu, 10 Apr 2014 22:03:01 +0000 (16:03 -0600)]
Elimate calls to fatal() in the logging code.

10 years agoQuiet a compiler warning on Solaris.
Todd C. Miller [Wed, 9 Apr 2014 22:33:28 +0000 (16:33 -0600)]
Quiet a compiler warning on Solaris.

10 years agoMove the sha2 code into libreplace and add configure checks for
Todd C. Miller [Wed, 9 Apr 2014 22:31:13 +0000 (16:31 -0600)]
Move the sha2 code into libreplace and add configure checks for
SHA224Update in libc and libmd.  Solaris uses "void *" where we use
"unsigned char *" so we need a check for that too.  Solaris sha2.h
defines SHA224, SHA256, SHA384, and SHA512 so rename those tokens.
Adapted from changes from Vladimir Marek in bug #641.

10 years agoFix matching of uids and gids broken in sudo 1.8.9.
Todd C. Miller [Wed, 9 Apr 2014 16:22:09 +0000 (10:22 -0600)]
Fix matching of uids and gids broken in sudo 1.8.9.

10 years agoFix -P option in usage()
Todd C. Miller [Wed, 9 Apr 2014 16:22:07 +0000 (10:22 -0600)]
Fix -P option in usage()

10 years agoRemove a few more unnecessary uses of fatal().
Todd C. Miller [Tue, 8 Apr 2014 01:52:28 +0000 (19:52 -0600)]
Remove a few more unnecessary uses of fatal().

10 years agoUse log_warning() not log_fatal() for the "Invalid authentication
Todd C. Miller [Mon, 7 Apr 2014 14:59:48 +0000 (08:59 -0600)]
Use log_warning() not log_fatal() for the "Invalid authentication
methods compiled into sudo" message.  We return -1 on error anyway.

10 years agoReturn MODE_ERROR from sudoers_policy_deserialize_info() instead
Todd C. Miller [Mon, 7 Apr 2014 11:34:56 +0000 (05:34 -0600)]
Return MODE_ERROR from sudoers_policy_deserialize_info() instead
of calling fatalx().

10 years agoparse_gid_list() now returns -1 on error instead of calling fatalx().
Todd C. Miller [Mon, 7 Apr 2014 11:33:36 +0000 (05:33 -0600)]
parse_gid_list() now returns -1 on error instead of calling fatalx().

10 years agoForward SIGINFO to running command if supported. If the command
Todd C. Miller [Fri, 4 Apr 2014 21:30:15 +0000 (15:30 -0600)]
Forward SIGINFO to running command if supported.  If the command
is being run in the background (or exec_background is set in sudoers),
it is the sudo process, not the actual command, that receives the ^T.

10 years agoRemove calls to log_fatal() in I/O log functions and just pass an
Todd C. Miller [Fri, 4 Apr 2014 21:30:12 +0000 (15:30 -0600)]
Remove calls to log_fatal() in I/O log functions and just pass an
error back to the caller.

10 years agoMake "internal error, %s overflow" arguments consistent, using
Todd C. Miller [Tue, 1 Apr 2014 22:42:13 +0000 (16:42 -0600)]
Make "internal error, %s overflow" arguments consistent, using
__func__ where possible (when debugging is allowed).

10 years agoUse common printf format when warning of buffer overflow prevention.
Todd C. Miller [Mon, 31 Mar 2014 21:58:24 +0000 (15:58 -0600)]
Use common printf format when warning of buffer overflow prevention.

10 years agoRemove init.d/*.sh in distclean
Todd C. Miller [Mon, 31 Mar 2014 21:47:02 +0000 (15:47 -0600)]
Remove init.d/*.sh in distclean

10 years agoCorrectly ignore init.d/*.sh
Todd C. Miller [Mon, 31 Mar 2014 21:46:47 +0000 (15:46 -0600)]
Correctly ignore init.d/*.sh

10 years agoRemove remaining calls to fatalx(); just pass the error to the caller.
Todd C. Miller [Mon, 31 Mar 2014 21:43:52 +0000 (15:43 -0600)]
Remove remaining calls to fatalx(); just pass the error to the caller.

10 years agoMake a password/group cache collision a warning rather than fatal.
Todd C. Miller [Wed, 26 Mar 2014 22:44:29 +0000 (16:44 -0600)]
Make a password/group cache collision a warning rather than fatal.
This should not be possible in practice and we can safely return
the new (potentially duplicate) item as it will be freed by the
caller.  Make sudo_set_grlist() return an error on failure instead
of calling fatalx().

10 years agoUse log_warning() instead of log_fatal() if the ticket or lecture
Todd C. Miller [Wed, 26 Mar 2014 20:22:46 +0000 (14:22 -0600)]
Use log_warning() instead of log_fatal() if the ticket or lecture
path is too long and just return an error.  This can only happen
from a misconfiguration so just ignoring the ticket/lecture file
is safe.

10 years agoIn find_path(), return NOT_FOUND_ERROR instead of calling fatal()
Todd C. Miller [Wed, 26 Mar 2014 20:15:15 +0000 (14:15 -0600)]
In find_path(), return NOT_FOUND_ERROR instead of calling fatal()
if the path is too long.  Remove an extraneous check against PATH_MAX
in set_cmnd() since find_path() already contains such a check.

10 years agoRemove unused MODE_LISTDEFS define and correct a comment.
Todd C. Miller [Wed, 26 Mar 2014 20:03:04 +0000 (14:03 -0600)]
Remove unused MODE_LISTDEFS define and correct a comment.

10 years agoMake hexchar() return -1 on invalid input instead of calling fatalx().
Todd C. Miller [Wed, 26 Mar 2014 19:50:51 +0000 (13:50 -0600)]
Make hexchar() return -1 on invalid input instead of calling fatalx().
Callers used to check that the string was hex before calling hexchar().
Now callers must check for a -1 return value instead.

10 years agoPropagate errors in audit code to caller instead of using fatal().
Todd C. Miller [Wed, 26 Mar 2014 19:00:56 +0000 (13:00 -0600)]
Propagate errors in audit code to caller instead of using fatal().
If we fail to audit an otherwise successful command, return an error
from the policy.  For Linux audit, sudo may be compiled with audit
support but auditing may not be setup, so we don't consider that
an error.

10 years agoRemove unused variable on Linux.
Todd C. Miller [Wed, 26 Mar 2014 17:10:20 +0000 (11:10 -0600)]
Remove unused variable on Linux.

10 years agoFix warning on systems where mode_t is not unsigned int (Solaris).
Todd C. Miller [Wed, 26 Mar 2014 17:09:57 +0000 (11:09 -0600)]
Fix warning on systems where mode_t is not unsigned int (Solaris).

10 years agoAudit path too long errror. Add comments about non-audit events
Todd C. Miller [Tue, 25 Mar 2014 22:46:00 +0000 (16:46 -0600)]
Audit path too long errror.  Add comments about non-audit events
and placeholders for future audit hooks.

10 years agoRemove unused FLAG_USER auth flag. We have no auth methods that
Todd C. Miller [Thu, 27 Feb 2014 22:51:40 +0000 (15:51 -0700)]
Remove unused FLAG_USER auth flag.  We have no auth methods that
require that authentication be run as the invoking user.

10 years agoFix aliasing warning in old-style interface probe code.
Todd C. Miller [Tue, 25 Mar 2014 22:16:19 +0000 (16:16 -0600)]
Fix aliasing warning in old-style interface probe code.

10 years agoFix some sign comparision warnings.
Todd C. Miller [Tue, 25 Mar 2014 22:16:11 +0000 (16:16 -0600)]
Fix some sign comparision warnings.

10 years agoDon't call fatal/fatalx in common/*.c
Todd C. Miller [Tue, 25 Mar 2014 22:16:10 +0000 (16:16 -0600)]
Don't call fatal/fatalx in common/*.c

10 years agoFix expansion of %p in the prompt for "sudo -l" when rootpw, runaspw
Todd C. Miller [Wed, 19 Mar 2014 22:55:37 +0000 (16:55 -0600)]
Fix expansion of %p in the prompt for "sudo -l" when rootpw, runaspw
or targetpw is set.  Bug #639

10 years agoSudo 1.8.10p2
Todd C. Miller [Mon, 17 Mar 2014 14:09:39 +0000 (08:09 -0600)]
Sudo 1.8.10p2

10 years agoDon't write an empty timestamp record when timestamp_timeout is
Todd C. Miller [Mon, 17 Mar 2014 13:14:55 +0000 (07:14 -0600)]
Don't write an empty timestamp record when timestamp_timeout is
zero.  If we find an empty record in the timestamp file, overwrite
it with a good one, truncating the file as needed.

10 years agoFix typos in description of the -x option. Bug #637
Todd C. Miller [Sat, 15 Mar 2014 15:15:36 +0000 (09:15 -0600)]
Fix typos in description of the -x option.  Bug #637

10 years agoSudo 1.8.10p1
Todd C. Miller [Thu, 13 Mar 2014 20:41:36 +0000 (14:41 -0600)]
Sudo 1.8.10p1

10 years agoFix typo/thinko that prevented "Defaults !tty_tickets" from working.
Todd C. Miller [Thu, 13 Mar 2014 19:38:42 +0000 (13:38 -0600)]
Fix typo/thinko that prevented "Defaults !tty_tickets" from working.

10 years agoFix "sudo -l command" output when the matching command is negated.
Todd C. Miller [Thu, 13 Mar 2014 14:21:04 +0000 (08:21 -0600)]
Fix "sudo -l command" output when the matching command is negated.
Bug #636

10 years agoThe atofoo_test and hltq_test tests now display their own test error rate.
Todd C. Miller [Tue, 11 Mar 2014 15:16:45 +0000 (09:16 -0600)]
The atofoo_test and hltq_test tests now display their own test error rate.
Display pass/fail count separately for sudo_conf and sudo_parseln tests.
Check stderr output for the sudo_conf test.

10 years agoDon't run the check_ttyname test if cross compiling.
Todd C. Miller [Tue, 11 Mar 2014 15:16:21 +0000 (09:16 -0600)]
Don't run the check_ttyname test if cross compiling.

10 years agoCWD no longer used.
Todd C. Miller [Tue, 11 Mar 2014 15:00:48 +0000 (09:00 -0600)]
CWD no longer used.

10 years agoFix diff of toke and err output files in "make check"
Todd C. Miller [Tue, 11 Mar 2014 14:52:52 +0000 (08:52 -0600)]
Fix diff of toke and err output files in "make check"

10 years agosync with translationproject.org
Todd C. Miller [Fri, 7 Mar 2014 21:48:13 +0000 (14:48 -0700)]
sync with translationproject.org

10 years agoCheck whether ber.h is needed before ldap.h even if we are not using
Todd C. Miller [Thu, 6 Mar 2014 22:26:09 +0000 (15:26 -0700)]
Check whether ber.h is needed before ldap.h even if we are not using
any ber functions.  Needed for older versions of nss ldap.

10 years agoFix compiler warning in debug code.
Todd C. Miller [Thu, 6 Mar 2014 22:21:49 +0000 (15:21 -0700)]
Fix compiler warning in debug code.

10 years agoCatalan translation for sudo from translationproject.org.
Todd C. Miller [Thu, 6 Mar 2014 18:58:08 +0000 (11:58 -0700)]
Catalan translation for sudo from translationproject.org.

10 years agoDocument negation fix in JSON output.
Todd C. Miller [Wed, 5 Mar 2014 12:57:41 +0000 (05:57 -0700)]
Document negation fix in JSON output.

10 years agoFix handling of '!' operator when converting sudoers. We now add
Todd C. Miller [Tue, 4 Mar 2014 23:18:35 +0000 (16:18 -0700)]
Fix handling of '!' operator when converting sudoers.  We now add
a "negated" boolean flag to objects that have the '!' operator.

10 years agoCzech translation for sudoers from translationproject.org
Todd C. Miller [Sat, 1 Mar 2014 14:53:17 +0000 (07:53 -0700)]
Czech translation for sudoers from translationproject.org

10 years agoTry -libmldap before -lldap in case there is no link from libibmldap.so
Todd C. Miller [Fri, 28 Feb 2014 18:05:13 +0000 (11:05 -0700)]
Try -libmldap before -lldap in case there is no link from libibmldap.so
to libldap.so.  Since IBM ldap is installed under /opt we should only
be able to reach it if --with-ldap was given an explicit path.

Only check for ber_set_option() if LBER_OPT_DEBUG_LEVEL is defined.

10 years agoFix typo in setreuid() PERM_ROOT error message.
Todd C. Miller [Thu, 27 Feb 2014 23:40:28 +0000 (16:40 -0700)]
Fix typo in setreuid() PERM_ROOT error message.

10 years agoNo longer need to disable setresuid() on debian.
Todd C. Miller [Thu, 27 Feb 2014 20:57:11 +0000 (13:57 -0700)]
No longer need to disable setresuid() on debian.

10 years agoFix conversion of timestamp_timeout from double to struct timeval.
Todd C. Miller [Wed, 26 Feb 2014 17:29:52 +0000 (10:29 -0700)]
Fix conversion of timestamp_timeout from double to struct timeval.
Also quiet a printf format warning on 32-bit systems.

10 years agoSerbian translation for sudoers from translationproject.org.
Todd C. Miller [Wed, 26 Feb 2014 00:14:51 +0000 (17:14 -0700)]
Serbian translation for sudoers from translationproject.org.

10 years agoAdd Ingo Schwarze
Todd C. Miller [Mon, 24 Feb 2014 23:39:39 +0000 (16:39 -0700)]
Add Ingo Schwarze

10 years agoWhen exporting sudoers in JSON format, use the same type of Options
Todd C. Miller [Mon, 24 Feb 2014 16:31:14 +0000 (09:31 -0700)]
When exporting sudoers in JSON format, use the same type of Options
object for both Defaults and Cmnd_Specs.

10 years agoSilence cppcheck false positive.
Todd C. Miller [Mon, 17 Feb 2014 20:45:17 +0000 (13:45 -0700)]
Silence cppcheck false positive.

10 years agosync with translationproject.org
Todd C. Miller [Mon, 17 Feb 2014 17:31:40 +0000 (10:31 -0700)]
sync with translationproject.org

10 years agoMention init.d scripts on AIX and HP-UX
Todd C. Miller [Mon, 17 Feb 2014 17:27:47 +0000 (10:27 -0700)]
Mention init.d scripts on AIX and HP-UX
Mention sudoers group mismatch fix

10 years agoTalk about clearing files at boot time, not reboot time since it
Todd C. Miller [Mon, 17 Feb 2014 17:27:20 +0000 (10:27 -0700)]
Talk about clearing files at boot time, not reboot time since it
happens when the system comes up, not down.

10 years agoWe also need to open the sudoers file as root if there is a GID
Todd C. Miller [Mon, 17 Feb 2014 17:20:14 +0000 (10:20 -0700)]
We also need to open the sudoers file as root if there is a GID
mismatch.

10 years agoInstall /etc/rc.d/init.d/sudo and /etc/rc.d/rc2.d/S90sudo for
Todd C. Miller [Mon, 17 Feb 2014 16:02:06 +0000 (09:02 -0700)]
Install /etc/rc.d/init.d/sudo and /etc/rc.d/rc2.d/S90sudo for
AIX rpm packages.

10 years agoRemove init.d file and link in uninstall target.
Todd C. Miller [Sun, 16 Feb 2014 22:07:22 +0000 (15:07 -0700)]
Remove init.d file and link in uninstall target.

10 years agoFix INIT_DIR for real this time.
Todd C. Miller [Sun, 16 Feb 2014 21:49:15 +0000 (14:49 -0700)]
Fix INIT_DIR for real this time.

10 years agoUse correct init.d dir on HP-UX.
Todd C. Miller [Sun, 16 Feb 2014 18:00:41 +0000 (11:00 -0700)]
Use correct init.d dir on HP-UX.
Fix pp warnings from rc.d and init.d dirs.

10 years agoFirst cut add installing an init.d file for HP-UX and AIX to remove
Todd C. Miller [Sun, 16 Feb 2014 17:22:43 +0000 (10:22 -0700)]
First cut add installing an init.d file for HP-UX and AIX to remove
old sudo timestamp files at boot time.

10 years agoUse .Ar macro instead of "file ..."
Todd C. Miller [Sat, 15 Feb 2014 23:12:31 +0000 (16:12 -0700)]
Use .Ar macro instead of "file ..."
Use ".Cm -" instead of ".Li -" for the default login class.
From Ingo Schwarze.

10 years agoRemove some extraneous markup; from Ingo Schwarze
Todd C. Miller [Sat, 15 Feb 2014 23:04:07 +0000 (16:04 -0700)]
Remove some extraneous markup; from Ingo Schwarze
 * No need to explicitly end a macro with No before |
   because | counts as middle punctuation
   and falls out of the macro, anyway.
 * No need to explicitly re-open in-line macros after |
   because | counts as middle punctuation
   and the macros resume afterwards, anyway.
 * Simplify the mnemonic remarks regarding the option letters,
   no need for manual font and spacing control with No and Ns.
 * Trim Ns No to just Ns, it already implies No.

10 years agoMove zerowidth space in :alpha: after the colon for consistency.
Todd C. Miller [Sat, 15 Feb 2014 22:45:25 +0000 (15:45 -0700)]
Move zerowidth space in :alpha: after the colon for consistency.

10 years agoregen
Todd C. Miller [Sat, 15 Feb 2014 22:18:34 +0000 (15:18 -0700)]
regen

10 years agoRemove extraneous keeps in SYNOPSIS now that mandoc does implied
Todd C. Miller [Sat, 15 Feb 2014 22:18:20 +0000 (15:18 -0700)]
Remove extraneous keeps in SYNOPSIS now that mandoc does implied
keeps when converting from mdoc to man.

10 years agoProperly escape the : in :alpha:
Todd C. Miller [Sat, 15 Feb 2014 22:17:37 +0000 (15:17 -0700)]
Properly escape the : in :alpha:

10 years agoReplace some uses of .Sy with .Ar, .Ev and .Pa as appropriate.
Todd C. Miller [Sat, 15 Feb 2014 17:40:46 +0000 (10:40 -0700)]
Replace some uses of .Sy with .Ar, .Ev and .Pa as appropriate.
From Jan Stary.

10 years agoFix indentation of Defaults entries. The initial indent should be
Todd C. Miller [Wed, 12 Feb 2014 22:00:04 +0000 (15:00 -0700)]
Fix indentation of Defaults entries.  The initial indent should be
outside the loop iterating over the entries.

10 years agosync with translationproject.org
Todd C. Miller [Tue, 11 Feb 2014 16:55:33 +0000 (09:55 -0700)]
sync with translationproject.org

10 years agoWe must include gettext.h before missing.h as it includes system
Todd C. Miller [Tue, 11 Feb 2014 16:40:59 +0000 (09:40 -0700)]
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.

10 years agoWhen emulating DSO_NEXT with shl_get() we need to skip the program's
Todd C. Miller [Tue, 11 Feb 2014 14:43:13 +0000 (07:43 -0700)]
When emulating DSO_NEXT with shl_get() we need to skip the program's
handle.  This used to be documented as being index -2 but now it
seems to be index 0.  As this is not guaranteed we need to look up
the real handle value for PROG_HANDLE and skip it when interating
through all the DSOs.  Fixes infinite recursion on HP-UX in the
getenv() replacement.