pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/sudo



Module Name:    pkgsrc
Committed By:   maya
Date:           Wed May 31 02:22:02 UTC 2017

Modified Files:
        pkgsrc/security/sudo: distinfo
Added Files:
        pkgsrc/security/sudo/patches: patch-include_sudo__compat.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 pkgsrc/security/sudo/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/security/sudo/patches/patch-include_sudo__compat.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/sudo/distinfo
diff -u pkgsrc/security/sudo/distinfo:1.89 pkgsrc/security/sudo/distinfo:1.90
--- pkgsrc/security/sudo/distinfo:1.89  Tue May 30 16:14:56 2017
+++ pkgsrc/security/sudo/distinfo       Wed May 31 02:22:02 2017
@@ -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 @@ Size (sudo-1.8.20p1.tar.gz) = 2930394 by
 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

Added files:

Index: pkgsrc/security/sudo/patches/patch-include_sudo__compat.h
diff -u /dev/null pkgsrc/security/sudo/patches/patch-include_sudo__compat.h:1.1
--- /dev/null   Wed May 31 02:22:02 2017
+++ pkgsrc/security/sudo/patches/patch-include_sudo__compat.h   Wed May 31 02:22:02 2017
@@ -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