diff options
author | hauke <hauke> | 2011-04-23 17:48:33 +0000 |
---|---|---|
committer | hauke <hauke> | 2011-04-23 17:48:33 +0000 |
commit | 35baee7c646cfd80635fcb163d33c58816bc5251 (patch) | |
tree | 19d0b80c6568bd5305a16e253f7887451a2ab3d9 /security/sudo | |
parent | 5e191509f5e097dfc1b46e012759f6009e4108b0 (diff) | |
download | pkgsrc-35baee7c646cfd80635fcb163d33c58816bc5251.tar.gz |
Make sure <langinfo.h> actually provides CODESET before using it,
for the sake of old NetBSD releases.
Diffstat (limited to 'security/sudo')
-rw-r--r-- | security/sudo/distinfo | 3 | ||||
-rw-r--r-- | security/sudo/patches/patch-logging.c | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/security/sudo/distinfo b/security/sudo/distinfo index 4378b430679..90d1f225d8c 100644 --- a/security/sudo/distinfo +++ b/security/sudo/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.70 2011/03/22 23:09:10 abs Exp $ +$NetBSD: distinfo,v 1.71 2011/04/23 17:48:33 hauke Exp $ SHA1 (sudo-1.7.5.tar.gz) = 5d12121aaf65b9fcd1012582c6d3a89f403c25d1 RMD160 (sudo-1.7.5.tar.gz) = b325d664b6597662568949e50bb781bbfc8c6abb @@ -6,3 +6,4 @@ Size (sudo-1.7.5.tar.gz) = 1117718 bytes SHA1 (patch-aa) = 795486c6b62f1e20017e3c5bd1f05d8cc5991332 SHA1 (patch-af) = 389af9aca76d7286c2e981573c56358846f8d0ca SHA1 (patch-ag) = 853232cc5fde6808562cc7dd6f5770069bdeae3f +SHA1 (patch-logging.c) = 0881a7e1903eeef764037a9a3334c2db62479761 diff --git a/security/sudo/patches/patch-logging.c b/security/sudo/patches/patch-logging.c new file mode 100644 index 00000000000..44644cf425a --- /dev/null +++ b/security/sudo/patches/patch-logging.c @@ -0,0 +1,16 @@ +$NetBSD: patch-logging.c,v 1.1 2011/04/23 17:48:33 hauke Exp $ + +Make sure CODESET is actually defined, for the sake of +old NetBSD versions + +--- logging.c.orig Fri Feb 4 22:59:42 2011 ++++ 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 */ |