pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/sudo sudo: workaround deficiencies in netbsd 6, 7



details:   https://anonhg.NetBSD.org/pkgsrc/rev/67c6bf8f38ba
branches:  trunk
changeset: 363038:67c6bf8f38ba
user:      maya <maya%pkgsrc.org@localhost>
date:      Wed May 31 02:22:02 2017 +0000

description:
sudo: workaround deficiencies in netbsd 6,7

NetBSD 7 doesn't define WCONTINUED or WIFCONTINUED, so provide
failure fallback definitions.

Thanks nonaka for the heads up.

diffstat:

 security/sudo/distinfo                             |   3 ++-
 security/sudo/patches/patch-include_sudo__compat.h |  20 ++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r 24d6531ca105 -r 67c6bf8f38ba security/sudo/distinfo
--- a/security/sudo/distinfo    Tue May 30 22:47:57 2017 +0000
+++ b/security/sudo/distinfo    Wed May 31 02:22:02 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.89 2017/05/30 16:14:56 maya Exp $
+$NetBSD: distinfo,v 1.90 2017/05/31 02:22:02 maya Exp $
 
 SHA1 (sudo-1.8.20p1.tar.gz) = 2138fca8c91c0504579aaf57fc39cee95486efd1
 RMD160 (sudo-1.8.20p1.tar.gz) = 1dbf71b6d22e9c75f57942c026be40dc02774859
@@ -7,6 +7,7 @@
 SHA1 (patch-aa) = 63c89e6d4e530ab92b7452f4025fbbf2a45dad65
 SHA1 (patch-af) = db54ce780c174129e2a25a87f3e3a926596c68b2
 SHA1 (patch-ag) = b80c3051f990a9e71c169ed8dbfd187556d22dac
+SHA1 (patch-include_sudo__compat.h) = 4f9b021ebdd507949f13e289deabdb6090ab334c
 SHA1 (patch-include_sudo__event.h) = 6aaf60cfcac89267c55d8578d2bb8785a3c67e0c
 SHA1 (patch-plugins_sudoers_Makefile.in) = d8612ac7bf2f5a892d9720c4df91810ca807f4ed
 SHA1 (patch-plugins_sudoers_logging.c) = a42e54af2b6057804aecb3b6a48c565e8ac4df82
diff -r 24d6531ca105 -r 67c6bf8f38ba security/sudo/patches/patch-include_sudo__compat.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/sudo/patches/patch-include_sudo__compat.h        Wed May 31 02:22:02 2017 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-include_sudo__compat.h,v 1.1 2017/05/31 02:22:02 maya Exp $
+
+Work around missing WCONTINUED/WIFCONTINUED support in
+NetBSD<8
+
+--- include/sudo_compat.h.orig 2017-05-10 15:38:43.000000000 +0000
++++ include/sudo_compat.h
+@@ -304,6 +304,12 @@ extern int errno;
+ # define SIG2STR_MAX 32
+ #endif
+ 
++/* Deficiencies in NetBSD<8 */
++#ifndef WCONTINUED
++# define WCONTINUED 0
++# define WIFCONTINUED(a) 0
++#endif
++
+ /* WCOREDUMP is not POSIX, this usually works (verified on AIX). */
+ #ifndef WCOREDUMP
+ # define WCOREDUMP(x) ((x) & 0x80)



Home | Main Index | Thread Index | Old Index