]> granicus.if.org Git - sudo/log
sudo
9 years agoOnly fall back on AUE_DARWIN_sudo if au_preselect() fails.
Todd C. Miller [Sun, 26 Apr 2015 13:55:33 +0000 (07:55 -0600)]
Only fall back on AUE_DARWIN_sudo if au_preselect() fails.

9 years agoWork around a problem on Mac OS X 10.10 which defines AUE_sudo but
Todd C. Miller [Sun, 26 Apr 2015 01:44:52 +0000 (19:44 -0600)]
Work around a problem on Mac OS X 10.10 which defines AUE_sudo but
where au_preselect() only accepts AUE_DARWIN_sudo (the old value).

9 years agoDon't use dlsym() to find the libc getenv() since this may allocate
Todd C. Miller [Wed, 22 Apr 2015 19:38:02 +0000 (13:38 -0600)]
Don't use dlsym() to find the libc getenv() since this may allocate
memory on some systems (glibc) which leads to a hang if malloc()
calls getenv() (jemalloc).

9 years agoDefer conversation initialization until right before plugins
Todd C. Miller [Wed, 22 Apr 2015 19:30:58 +0000 (13:30 -0600)]
Defer conversation initialization until right before plugins
are initialized.

9 years agoSplit variable declaration out of debug_decl into debug_decl_vars()
Todd C. Miller [Wed, 22 Apr 2015 19:30:58 +0000 (13:30 -0600)]
Split variable declaration out of debug_decl into debug_decl_vars()
so we can use it in main() when we know sudo_debug_enter() cannot
succeed.

9 years agoWhen creating a passwd struct from a uid that is not in the passwd
Todd C. Miller [Thu, 16 Apr 2015 19:19:04 +0000 (13:19 -0600)]
When creating a passwd struct from a uid that is not in the passwd
database, set pw_gid to the user's gid instead of whatever the user
specified via the -g flag (or 0 if no -g).

9 years agoAdd some ldap_err2string() debugging when the LDAP search fails.
Todd C. Miller [Tue, 14 Apr 2015 15:50:40 +0000 (09:50 -0600)]
Add some ldap_err2string() debugging when the LDAP search fails.
Adapted from a diff from Steven Soulen.

9 years agoSync with translationproject.org
Todd C. Miller [Mon, 13 Apr 2015 20:04:49 +0000 (14:04 -0600)]
Sync with translationproject.org

9 years agoAdd David Michael and Andrey Klyachkin.
Todd C. Miller [Fri, 10 Apr 2015 15:07:02 +0000 (09:07 -0600)]
Add David Michael and Andrey Klyachkin.

9 years agoSync tmpfiles.d/sudo.conf with init.d/sudo.conf.in
Todd C. Miller [Fri, 10 Apr 2015 15:03:15 +0000 (09:03 -0600)]
Sync tmpfiles.d/sudo.conf with init.d/sudo.conf.in

9 years agoAvoid struct assignment when stashing mtime since AIX at least uses
Todd C. Miller [Fri, 10 Apr 2015 13:43:54 +0000 (07:43 -0600)]
Avoid struct assignment when stashing mtime since AIX at least uses
a struct st_timespec that differs from struct timespec.
From Andrey Klyachkin.

9 years agoWork around a bug in pp that caused a warning when exampledir is a
Todd C. Miller [Fri, 10 Apr 2015 00:14:38 +0000 (18:14 -0600)]
Work around a bug in pp that caused a warning when exampledir is a
subdir of docdir.

9 years agoAdd sys/types.h
Todd C. Miller [Thu, 9 Apr 2015 17:01:41 +0000 (11:01 -0600)]
Add sys/types.h

9 years agoInclude sys/types.h instead of unistd.h to get uid_t and gid_t.
Todd C. Miller [Thu, 9 Apr 2015 16:58:04 +0000 (10:58 -0600)]
Include sys/types.h instead of unistd.h to get uid_t and gid_t.
Add missing include of sys/types.h to a few places.

9 years agoRemove unintended commit
Todd C. Miller [Wed, 8 Apr 2015 21:29:59 +0000 (15:29 -0600)]
Remove unintended commit

9 years agoAdd tmpfiles.d/sudo.conf template.
Todd C. Miller [Wed, 8 Apr 2015 13:14:33 +0000 (07:14 -0600)]
Add tmpfiles.d/sudo.conf template.

9 years agoCreate template tmpfiles.d/sudo.conf for installation instead of
Todd C. Miller [Tue, 7 Apr 2015 21:35:01 +0000 (15:35 -0600)]
Create template tmpfiles.d/sudo.conf for installation instead of
creating one via echo commands in the Makefile.

Add --enable-tmpfiles.d configure option to enable/disable use of
tmpfiles.d and override the default directory.

Use --disable-tmpfiles.d in mkpkg so we no longer need to ignore
tmpfiles.d/sudo.conf in sudo.pp.

9 years agoMake exampledir configurable and default to DATAROOTDIR/examples/sudo
Todd C. Miller [Mon, 6 Apr 2015 21:10:26 +0000 (15:10 -0600)]
Make exampledir configurable and default to DATAROOTDIR/examples/sudo
on BSD systems.

9 years agoFix setting of pp_rpm_version when there is no patchlevel present.
Todd C. Miller [Tue, 7 Apr 2015 16:15:45 +0000 (10:15 -0600)]
Fix setting of pp_rpm_version when there is no patchlevel present.
Also tighten up the regexp for pp_rpm_release.

9 years agoInstall /usr/lib/tmpfiles.d/sudo.conf on systems with systemd but
Todd C. Miller [Mon, 6 Apr 2015 21:08:37 +0000 (15:08 -0600)]
Install /usr/lib/tmpfiles.d/sudo.conf on systems with systemd but
do not package it.  For packages we create /usr/lib/tmpfiles.d/sudo.conf
as needed in the postinstall script.

9 years agoFix "mandoc -Tlint" warnings.
Todd C. Miller [Sun, 22 Mar 2015 19:09:26 +0000 (13:09 -0600)]
Fix "mandoc -Tlint" warnings.
Sync AUTHORS section in man pages.
Regenerate all man pages.

9 years agoMake libsudo_util depend on libintl instead of requiring users of
Todd C. Miller [Sun, 22 Mar 2015 14:16:22 +0000 (08:16 -0600)]
Make libsudo_util depend on libintl instead of requiring users of
libsudo_util to link with libintl directly.  Bug #690

9 years agoUse saved errno in vlog_warning() before calling sudo_vwarn_nodebug().
Todd C. Miller [Sat, 21 Mar 2015 21:41:59 +0000 (15:41 -0600)]
Use saved errno in vlog_warning() before calling sudo_vwarn_nodebug().
Fixes the error message printed if set_perms() fails.

9 years agoUpdate for 1.8.13 final.
Todd C. Miller [Wed, 18 Mar 2015 17:04:43 +0000 (11:04 -0600)]
Update for 1.8.13 final.

9 years agoFor sudoedit, run the editor with the user's original environment
Todd C. Miller [Tue, 17 Mar 2015 02:19:24 +0000 (20:19 -0600)]
For sudoedit, run the editor with the user's original environment
as per the documentation (and as in sudo 1.7.x).  Bug #688

9 years agoSync with translationproject.org
Todd C. Miller [Mon, 16 Mar 2015 20:11:19 +0000 (14:11 -0600)]
Sync with translationproject.org

9 years agoUpdate function names in debug_decl.
Todd C. Miller [Tue, 10 Mar 2015 17:09:25 +0000 (11:09 -0600)]
Update function names in debug_decl.

9 years agoUse TCSAFLUSH instead of TCSANOW in sudo_term_copy().
Todd C. Miller [Tue, 10 Mar 2015 14:55:01 +0000 (08:55 -0600)]
Use TCSAFLUSH instead of TCSANOW in sudo_term_copy().
Be consistent with where we put TCSASOFT in the action flags.

9 years agoSync with translationproject.org
Todd C. Miller [Mon, 9 Mar 2015 17:16:09 +0000 (11:16 -0600)]
Sync with translationproject.org

9 years agoInclude unistd.h since sudo_compat.h uses gid_t.
Todd C. Miller [Mon, 9 Mar 2015 00:53:58 +0000 (18:53 -0600)]
Include unistd.h since sudo_compat.h uses gid_t.

9 years agoAdd --disable-weak-symbols option to disable use of weak symbols
Todd C. Miller [Thu, 5 Mar 2015 21:43:06 +0000 (14:43 -0700)]
Add --disable-weak-symbols option to disable use of weak symbols
in libsudo_util.

9 years agoregen
Todd C. Miller [Thu, 5 Mar 2015 19:57:14 +0000 (12:57 -0700)]
regen

9 years agoWhen checking for weak aliases, check the gcc attribute format last
Todd C. Miller [Thu, 5 Mar 2015 19:44:48 +0000 (12:44 -0700)]
When checking for weak aliases, check the gcc attribute format last
since some C compilers just ignore unsupported attributes.

9 years agoUpdate copyright year.
Todd C. Miller [Thu, 5 Mar 2015 19:43:50 +0000 (12:43 -0700)]
Update copyright year.

9 years agoSync with translationproject.org
Todd C. Miller [Thu, 5 Mar 2015 19:28:51 +0000 (12:28 -0700)]
Sync with translationproject.org

9 years agoFix symbol name collision with systems that have their own sha2
Todd C. Miller [Thu, 5 Mar 2015 19:27:26 +0000 (12:27 -0700)]
Fix symbol name collision with systems that have their own sha2
implementation.  This can result in PAM using the wrong sha2
implementation on Solaris systems configured to use SHA512 for
passwords.

9 years agoUse SSP_LDFLAGS when linking sudo_noexec.la
Todd C. Miller [Thu, 5 Mar 2015 17:10:29 +0000 (10:10 -0700)]
Use SSP_LDFLAGS when linking sudo_noexec.la

9 years agoRemove compat/utime.h, it was only useful for ancient systems that
Todd C. Miller [Tue, 3 Mar 2015 23:57:55 +0000 (16:57 -0700)]
Remove compat/utime.h, it was only useful for ancient systems that
are no longer capable of compiling sudo.

9 years agoLink libsudo_util with -lrt on systems where clock_gettime is in -lrt.
Todd C. Miller [Mon, 2 Mar 2015 23:05:57 +0000 (16:05 -0700)]
Link libsudo_util with -lrt on systems where clock_gettime is in -lrt.

9 years agoUpdate.
Todd C. Miller [Mon, 2 Mar 2015 22:38:47 +0000 (15:38 -0700)]
Update.

9 years agoUpdate OpenBSD CVS Ids
Todd C. Miller [Mon, 2 Mar 2015 21:43:38 +0000 (14:43 -0700)]
Update OpenBSD CVS Ids

9 years agoMake comment match code.
Todd C. Miller [Mon, 2 Mar 2015 21:42:17 +0000 (14:42 -0700)]
Make comment match code.

9 years agoFix compilation error on systems without futimes().
Todd C. Miller [Mon, 2 Mar 2015 21:28:46 +0000 (14:28 -0700)]
Fix compilation error on systems without futimes().

9 years agoUse futimens() and utimensat() instead of futimes() and utimes().
Todd C. Miller [Mon, 2 Mar 2015 20:58:50 +0000 (13:58 -0700)]
Use futimens() and utimensat() instead of futimes() and utimes().

9 years agoFix compiler warning on systems where mode_t is not unsigned int,
Todd C. Miller [Mon, 2 Mar 2015 20:58:45 +0000 (13:58 -0700)]
Fix compiler warning on systems where mode_t is not unsigned int,
such as 32-bit Solaris.

9 years agoFix logic for verifypw/listpw all in sudoers LDAP and sssd.
Todd C. Miller [Mon, 2 Mar 2015 18:37:43 +0000 (11:37 -0700)]
Fix logic for verifypw/listpw all in sudoers LDAP and sssd.

9 years agoFix cut & pasto that prevented the SIGPIPE handler from being
Todd C. Miller [Mon, 2 Mar 2015 15:49:04 +0000 (08:49 -0700)]
Fix cut & pasto that prevented the SIGPIPE handler from being
restored before returning from tgetpass().  From mancha

9 years agoOur utimes() emulation support futime() too.
Todd C. Miller [Sat, 28 Feb 2015 22:13:19 +0000 (15:13 -0700)]
Our utimes() emulation support futime() too.

9 years agoregen
Todd C. Miller [Fri, 27 Feb 2015 21:48:41 +0000 (14:48 -0700)]
regen

9 years agoDefine YYDEBUG to 0 if not already defined so we can protect use
Todd C. Miller [Fri, 27 Feb 2015 14:10:20 +0000 (07:10 -0700)]
Define YYDEBUG to 0 if not already defined so we can protect use
of sudoersdebug with "#if YYDEBUG" like the generated parser does.
From David Michael.

9 years agoDocument that Aliases may not be redefined and that "sudo -f /etc/sudo.d/foo"
Todd C. Miller [Thu, 26 Feb 2015 23:54:14 +0000 (16:54 -0700)]
Document that Aliases may not be redefined and that "sudo -f /etc/sudo.d/foo"
will not catch the redefinition.

9 years agoOnly create /usr/lib/tmpfiles.d/sudo.conf if
Todd C. Miller [Thu, 26 Feb 2015 16:55:01 +0000 (09:55 -0700)]
Only create /usr/lib/tmpfiles.d/sudo.conf if
/usr/lib/tmpfiles.d/systemd.conf also exists.  Some other package
may have created /usr/lib/tmpfiles.d even though it is not used.

9 years agoregen
Todd C. Miller [Thu, 26 Feb 2015 16:40:10 +0000 (09:40 -0700)]
regen

9 years agoClear the ts dir instead of just making sure it exists.
Todd C. Miller [Thu, 26 Feb 2015 16:21:18 +0000 (09:21 -0700)]
Clear the ts dir instead of just making sure it exists.

9 years agoOnly substiture init.d scripts that we are going to use.
Todd C. Miller [Thu, 26 Feb 2015 16:19:08 +0000 (09:19 -0700)]
Only substiture init.d scripts that we are going to use.

9 years agoCreate /usr/lib/tmpfiles.d/sudo.conf when systemd is used.
Todd C. Miller [Wed, 25 Feb 2015 23:45:12 +0000 (16:45 -0700)]
Create /usr/lib/tmpfiles.d/sudo.conf when systemd is used.

9 years agoCheck the return value of gettimeofday(), even though it should
Todd C. Miller [Wed, 25 Feb 2015 14:10:25 +0000 (07:10 -0700)]
Check the return value of gettimeofday(), even though it should
never fail.

9 years agoWe cannot (easily) use clock_gettime(CLOCK_MONOTONIC) directly as
Todd C. Miller [Tue, 24 Feb 2015 18:19:21 +0000 (11:19 -0700)]
We cannot (easily) use clock_gettime(CLOCK_MONOTONIC) directly as
it may be present but not implemented.  Add sudo_gettime_real() and
sudo_gettime_mono() functions to get the real and monotonic times
respectively.  Now sudo_gettime_mono() checks the value of
sysconf(_SC_MONOTONIC_CLOCK) before calling clock_gettime(CLOCK_MONOTONIC)
and falls back on sudo_gettime_real() as needed.  The Mach version
of sudo_gettime_mono() uses mach_absolute_time().

This should fix problems with timestamp files on systems where
the CLOCK_MONOTONIC is defined but not actually implemented.

9 years agoCheck clock_gettime() return value and warn if it fails.
Todd C. Miller [Tue, 24 Feb 2015 16:53:50 +0000 (09:53 -0700)]
Check clock_gettime() return value and warn if it fails.
Currently, the timestamp will be ignored if clock_gettime() fails.

9 years agoPlug memory leak when debug file cannot be opened.
Todd C. Miller [Mon, 23 Feb 2015 22:40:37 +0000 (15:40 -0700)]
Plug memory leak when debug file cannot be opened.
Use %zu printf format now that our snprintf support it.

9 years agoPam conversation function changes:
Todd C. Miller [Mon, 23 Feb 2015 18:12:45 +0000 (11:12 -0700)]
Pam conversation function changes:
 o use PAM_BUF_ERR as the return value when calloc() fails.
 o sanity check the value of num_msg
 o remove the workaround for old Apple PAM
 o PAM_AUTH_ERR is not a valid PAM conversation function return value

If getpass_error is set after a call to pam_verify (usually because
the user pressed ^C), return AUTH_INTR immediately instead of
checking the pam_verify return value.

9 years agoOn AIX use the value of auth_type in /etc/security/login.cfg to
Todd C. Miller [Mon, 23 Feb 2015 18:12:43 +0000 (11:12 -0700)]
On AIX use the value of auth_type in /etc/security/login.cfg to
determine whether to use LAM or PAM unless the user specified the
--with-pam or --with-aixauth configure flags.

9 years agoFix cast.
Todd C. Miller [Mon, 23 Feb 2015 13:32:43 +0000 (06:32 -0700)]
Fix cast.

9 years agoUpdate snprintf.c from OpenBSD. The floating point and wide character
Todd C. Miller [Sat, 21 Feb 2015 23:52:14 +0000 (16:52 -0700)]
Update snprintf.c from OpenBSD.  The floating point and wide character
code has been retained but is not compiled by default.

9 years agoUpdate the regression test that check that all tags are parsed.
Todd C. Miller [Fri, 20 Feb 2015 23:02:37 +0000 (16:02 -0700)]
Update the regression test that check that all tags are parsed.

9 years agoAdd regress for mkdtemp and mkstemps from OpenBSD
Todd C. Miller [Fri, 20 Feb 2015 21:37:02 +0000 (14:37 -0700)]
Add regress for mkdtemp and mkstemps from OpenBSD

9 years agoregen
Todd C. Miller [Fri, 20 Feb 2015 13:33:37 +0000 (06:33 -0700)]
regen

9 years agoSync with translationproject.org
Todd C. Miller [Fri, 20 Feb 2015 13:33:02 +0000 (06:33 -0700)]
Sync with translationproject.org

9 years agoCorrect SECURE_PATH comment.
Todd C. Miller [Fri, 20 Feb 2015 13:30:41 +0000 (06:30 -0700)]
Correct SECURE_PATH comment.

9 years agoSudo 1.8.13
Todd C. Miller [Fri, 20 Feb 2015 13:29:41 +0000 (06:29 -0700)]
Sudo 1.8.13

9 years agoAvoid using HOST_NAME_MAX directly and use sysconf(_SC_HOST_NAME_MAX)
Todd C. Miller [Fri, 20 Feb 2015 03:28:02 +0000 (20:28 -0700)]
Avoid using HOST_NAME_MAX directly and use sysconf(_SC_HOST_NAME_MAX)
instead.

9 years agoHistorically, crypt() returned the empty string on error, which
Todd C. Miller [Thu, 19 Feb 2015 21:17:57 +0000 (14:17 -0700)]
Historically, crypt() returned the empty string on error, which
ensured that crypt("", "") would return "", which supported matcing
empty encrypted passwords with no additional code.  Some modern
versions of crypt() (such as glibc) return NULL on error so we need
an explicit test to match an empty plaintext password and an empty
encrypted password.

9 years agoSort tags lexically in the sudoers manual
Todd C. Miller [Thu, 19 Feb 2015 17:13:25 +0000 (10:13 -0700)]
Sort tags lexically in the sudoers manual

9 years agoAdd support for MAIL and NOMAIL command tags to toggle mail sending
Todd C. Miller [Thu, 19 Feb 2015 17:02:20 +0000 (10:02 -0700)]
Add support for MAIL and NOMAIL command tags to toggle mail sending
behavior on a per-command (or Cmnd_Alias) basis.

9 years agoAdd mail_all_cmnds to always mail when a user runs a command (or
Todd C. Miller [Mon, 16 Feb 2015 03:30:11 +0000 (20:30 -0700)]
Add mail_all_cmnds to always mail when a user runs a command (or
tries to) including sudoedit.  The mail_always flag goes back to
its old semantic of always mailing when sudo is run.

9 years agoAll modern systems should have LINE_MAX.
Todd C. Miller [Thu, 19 Feb 2015 16:59:25 +0000 (09:59 -0700)]
All modern systems should have LINE_MAX.

9 years agoAlmost no systems actually define OPEN_MAX since it is dynamic on
Todd C. Miller [Thu, 19 Feb 2015 16:59:25 +0000 (09:59 -0700)]
Almost no systems actually define OPEN_MAX since it is dynamic on
modern OSes.  If sysconf(_SC_OPEN_MAX) ever fails, fall back on
_POSIX_OPEN_MAX instead.  We can assume modern systems have sysconf().
Also remove checks for strrchr() and strtoll() for which the HAVE_*
defines are no longer used.

9 years agoDon't need to pass exampledir to polypkg now that it is just under
Todd C. Miller [Thu, 19 Feb 2015 16:47:57 +0000 (09:47 -0700)]
Don't need to pass exampledir to polypkg now that it is just under
docdir.

9 years agoFix packaging of the example dir.
Todd C. Miller [Wed, 18 Feb 2015 23:17:24 +0000 (16:17 -0700)]
Fix packaging of the example dir.

9 years agoFix mkstemps() extension handling. Sudoedit will now preserve the
Todd C. Miller [Wed, 18 Feb 2015 13:24:31 +0000 (06:24 -0700)]
Fix mkstemps() extension handling.  Sudoedit will now preserve the
extension properly when the system libc lacks mkstemps().

9 years agoUse weak symbols for sudo_warn_gettext() and sudo_warn_strerror()
Todd C. Miller [Tue, 17 Feb 2015 13:42:10 +0000 (06:42 -0700)]
Use weak symbols for sudo_warn_gettext() and sudo_warn_strerror()
so distros using "-Wl,--no-undefined" in LDFLAGS don't run into
problems.

9 years agoInclude unistd.h in siglist.c and signame.c to get gid_t which
Todd C. Miller [Tue, 17 Feb 2015 13:21:06 +0000 (06:21 -0700)]
Include unistd.h in siglist.c and signame.c to get gid_t which
is used by sudo_compat.h.  Bug #686

9 years agoMinor change in description of TZ path handling.
Todd C. Miller [Tue, 10 Feb 2015 20:39:03 +0000 (13:39 -0700)]
Minor change in description of TZ path handling.

9 years agoMove example dir under the doc dir to conform to Debian guidelines.
Todd C. Miller [Tue, 10 Feb 2015 16:50:09 +0000 (09:50 -0700)]
Move example dir under the doc dir to conform to Debian guidelines.
Bug #682.

9 years agoDocument that a leading ':' is skipped when checking TZ for a
Todd C. Miller [Tue, 10 Feb 2015 16:37:10 +0000 (09:37 -0700)]
Document that a leading ':' is skipped when checking TZ for a
fully-qualified path name.

9 years agoTypo.
Todd C. Miller [Mon, 9 Feb 2015 23:21:52 +0000 (16:21 -0700)]
Typo.

9 years agoFix typos.
Todd C. Miller [Mon, 9 Feb 2015 18:39:28 +0000 (11:39 -0700)]
Fix typos.

9 years agoFix compilation on systems w/o __dso_public
Todd C. Miller [Mon, 9 Feb 2015 15:52:19 +0000 (08:52 -0700)]
Fix compilation on systems w/o __dso_public

9 years agoRussian translation for sudoers from translationproject.org.
Todd C. Miller [Sat, 7 Feb 2015 14:47:39 +0000 (07:47 -0700)]
Russian translation for sudoers from translationproject.org.

9 years agoRussian translation for sudoers from translationproject.org.
Todd C. Miller [Fri, 6 Feb 2015 22:28:04 +0000 (15:28 -0700)]
Russian translation for sudoers from translationproject.org.

9 years agoAdd check for getresuid() declaration, which may be missing on HP-UX.
Todd C. Miller [Fri, 6 Feb 2015 18:33:30 +0000 (11:33 -0700)]
Add check for getresuid() declaration, which may be missing on HP-UX.
When checking for getdomainname() prototype, look in netdb.h too.

9 years agoSanity check the TZ environment variable by special casing it in
Todd C. Miller [Fri, 6 Feb 2015 18:01:05 +0000 (11:01 -0700)]
Sanity check the TZ environment variable by special casing it in
env_check.  The --with-tzdir configure option can be used to
specify the zoneinfo directory if configure doesn't find it.

9 years agoMention crash fixes.
Todd C. Miller [Fri, 6 Feb 2015 17:56:52 +0000 (10:56 -0700)]
Mention crash fixes.

9 years agoBail with usage() early if argc <= 0.
Todd C. Miller [Fri, 6 Feb 2015 16:17:39 +0000 (09:17 -0700)]
Bail with usage() early if argc <= 0.

9 years agoRemove extraneous casts of node->data (which is void *).
Todd C. Miller [Thu, 5 Feb 2015 22:01:25 +0000 (15:01 -0700)]
Remove extraneous casts of node->data (which is void *).

9 years agoAdd Stephane Chazelas
Todd C. Miller [Thu, 5 Feb 2015 21:57:04 +0000 (14:57 -0700)]
Add Stephane Chazelas

9 years agoFix a potential crash when getpwnam() of the running user fails
Todd C. Miller [Thu, 5 Feb 2015 18:17:26 +0000 (11:17 -0700)]
Fix a potential crash when getpwnam() of the running user fails
and we don't replace the negative cached entry with a faked up one.
From Stephane Chazelas

9 years agoDon't assume argv[0] is set without first checking argc.
Todd C. Miller [Thu, 5 Feb 2015 18:17:25 +0000 (11:17 -0700)]
Don't assume argv[0] is set without first checking argc.

9 years agoHandle sudo_get_grlist() returning NULL which can happen if
Todd C. Miller [Thu, 5 Feb 2015 18:17:24 +0000 (11:17 -0700)]
Handle sudo_get_grlist() returning NULL which can happen if
getgrouplist() fails even after allocating the appropriate amount
of memory.  From Stephane Chazelas

9 years agoCall setprogname("sudo") if getprogname() returns NULL or the empty
Todd C. Miller [Thu, 5 Feb 2015 18:17:24 +0000 (11:17 -0700)]
Call setprogname("sudo") if getprogname() returns NULL or the empty
string.