What's new in Sudo 1.7.6p2 * Two-character CIDR-style IPv4 netmasks are now matched correctly in the sudoers file. * A build error with MIT Kerberos V has been resolved. What's new in Sudo 1.7.6p1 * A non-existent includedir is now treated the same as an empty directory and not reported as an error. * Removed extraneous parens in LDAP filter when sudoers_search_filter is enabled that can cause an LDAP search error.
16 lines
571 B
C
16 lines
571 B
C
$NetBSD: patch-logging.c,v 1.2 2011/06/19 15:54:55 taca Exp $
|
|
|
|
Make sure CODESET is actually defined, for the sake of
|
|
old NetBSD versions
|
|
|
|
--- logging.c.orig 2011-02-04 22:59:42.000000000 +0000
|
|
+++ logging.c
|
|
@@ -619,7 +619,7 @@ send_mail(fmt, va_alist)
|
|
(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 */
|