118d1900bf
http://www.sudo.ws/sudo/alerts/env_add.html What's new in Sudo 1.7.10p8? * Sudo's exit code now indicates a failure if the user does not successfully authenticate. * On HP-UX systems, sudo will now use the pstat() function to determine the tty instead of ttyname(). * Fixed compilation when --without-iologdir configure option is specified. * On systems with BSD login classes, if the user specified a group (not a user) to run the command as, it was possible to specify a different login class even when the command was not run as the super user. * The closefrom() emulation on Mac OS X now uses /dev/fd if possible. It also now sets the close on exec flag instead of actually closing the descriptors to avoid a crash in libdispatch. * The sudoers plugin will now ignore invalid domain names when checking netgroup membership. Most Linux systems use the string "(none)" for the NIS-style domain name instead of an empty string. * Fixed the logic when checking environment variables on the command line against the env_check and env_delete blacklists. This is only a problem when env_reset is disabled in sudoers.
16 lines
581 B
C
16 lines
581 B
C
$NetBSD: patch-logging.c,v 1.4 2014/03/08 11:51:56 kim Exp $
|
|
|
|
Make sure CODESET is actually defined, for the sake of
|
|
old NetBSD versions
|
|
|
|
--- logging.c.orig 2013-03-01 11:08:30.000000000 -0500
|
|
+++ logging.c 2014-03-08 06:35:19.000000000 -0500
|
|
@@ -691,7 +691,7 @@
|
|
(void) fputc(*p, mail);
|
|
}
|
|
|
|
-#ifdef HAVE_NL_LANGINFO
|
|
+#if defined(HAVE_NL_LANGINFO) && defined(CODESET)
|
|
if (strcmp(def_sudoers_locale, "C") != 0)
|
|
(void) fprintf(mail, "\nContent-Type: text/plain; charset=\"%s\"\nContent-Transfer-Encoding: 8bit", nl_langinfo(CODESET));
|
|
#endif /* HAVE_NL_LANGINFO */
|