pkgsrc/security/sudo/patches/patch-logging.c
ryoon fcddc38b0f The patch in PR pkg/45280 applied.
* Fix build on DragonFly.
* The patches regen.

Tested on DragonFly/i386 2.10.1 and NetBSD/i386 5.99.55.
2011-09-18 14:18:24 +00:00

16 lines
562 B
C

$NetBSD: patch-logging.c,v 1.3 2011/09/18 14:18:25 ryoon Exp $
Make sure CODESET is actually defined, for the sake of
old NetBSD versions
--- logging.c.orig 2011-08-13 17:32:04 +0000
+++ logging.c
@@ -573,7 +573,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 */