pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/sudo sudo: correct fallback for no sysconf(_S...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ddc24cc24f32
branches:  trunk
changeset: 402807:ddc24cc24f32
user:      maya <maya%pkgsrc.org@localhost>
date:      Wed Oct 16 20:25:21 2019 +0000

description:
sudo: correct fallback for no sysconf(_SC_RTSIG_MAX).

Thanks nros for the heads up.

diffstat:

 security/sudo/Makefile                         |  3 ++-
 security/sudo/distinfo                         |  4 ++--
 security/sudo/patches/patch-lib_util_str2sig.c |  6 +++---
 3 files changed, 7 insertions(+), 6 deletions(-)

diffs (57 lines):

diff -r e7a11dd5e035 -r ddc24cc24f32 security/sudo/Makefile
--- a/security/sudo/Makefile    Wed Oct 16 19:25:44 2019 +0000
+++ b/security/sudo/Makefile    Wed Oct 16 20:25:21 2019 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.168 2019/10/14 20:05:58 maya Exp $
+# $NetBSD: Makefile,v 1.169 2019/10/16 20:25:21 maya Exp $
 
 DISTNAME=      sudo-1.8.28
+PKGREVISION=   1
 CATEGORIES=    security
 MASTER_SITES=  https://www.sudo.ws/dist/
 MASTER_SITES+= ftp://ftp.sudo.ws/pub/sudo/
diff -r e7a11dd5e035 -r ddc24cc24f32 security/sudo/distinfo
--- a/security/sudo/distinfo    Wed Oct 16 19:25:44 2019 +0000
+++ b/security/sudo/distinfo    Wed Oct 16 20:25:21 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.102 2019/10/14 20:05:58 maya Exp $
+$NetBSD: distinfo,v 1.103 2019/10/16 20:25:21 maya Exp $
 
 SHA1 (sudo-1.8.28.tar.gz) = c0a6ccb124b4cef58255ee9ca3179c52db07910b
 RMD160 (sudo-1.8.28.tar.gz) = 5104faf846b59a0c04045e2f464ffeae3ddf95c2
@@ -9,7 +9,7 @@
 SHA1 (patch-include_sudo__compat.h) = 4f9b021ebdd507949f13e289deabdb6090ab334c
 SHA1 (patch-include_sudo__event.h) = 4d0787a45c2c7d4a7d3ae3111ccb3a4a4b84d083
 SHA1 (patch-lib_util_sig2str.c) = e5636d9e414fc9354cd238751fa4a00026320dd3
-SHA1 (patch-lib_util_str2sig.c) = 42de4b9716baaff72439512df41e5382a6ce9294
+SHA1 (patch-lib_util_str2sig.c) = e04aa67cab901e1be10d59bd1b0ee740aa1295b8
 SHA1 (patch-plugins_sudoers_Makefile.in) = d8612ac7bf2f5a892d9720c4df91810ca807f4ed
 SHA1 (patch-plugins_sudoers_logging.c) = 700ac9540a82bea4f3106cea941b785e5bd31203
 SHA1 (patch-plugins_sudoers_starttime.c) = ab051d327a2b01736ab9ceefe7e6f03e0e2f1ee6
diff -r e7a11dd5e035 -r ddc24cc24f32 security/sudo/patches/patch-lib_util_str2sig.c
--- a/security/sudo/patches/patch-lib_util_str2sig.c    Wed Oct 16 19:25:44 2019 +0000
+++ b/security/sudo/patches/patch-lib_util_str2sig.c    Wed Oct 16 20:25:21 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-lib_util_str2sig.c,v 1.1 2019/10/14 20:05:58 maya Exp $
+$NetBSD: patch-lib_util_str2sig.c,v 1.2 2019/10/16 20:25:21 maya Exp $
 
 Handle sysconf(_SC_RTSIG_MAX) not existing (netbsd):
 just assume the static limits is good enough.
@@ -12,7 +12,7 @@
 +#ifdef _SC_RTSIG_MAX
                const long rtmax = sysconf(_SC_RTSIG_MAX);
 +#else
-+              const long rtmax = SIGRTMAX;
++              const long rtmax = SIGRTMAX - SIGRTMIN;
 +#endif
                const int off = signame[6] - '0';
  
@@ -24,7 +24,7 @@
 +#ifdef _SC_RTSIG_MAX
                const long rtmax = sysconf(_SC_RTSIG_MAX);
 +#else
-+              const long rtmax = SIGRTMAX;
++              const long rtmax = SIGRTMAX - SIGRTMIN;
 +#endif
                const int off = signame[6] - '0';
  



Home | Main Index | Thread Index | Old Index