pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/zoneminder Fix error checks. Bump revision.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d14dad1fd86b
branches:  trunk
changeset: 358570:d14dad1fd86b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Feb 15 00:54:25 2017 +0000

description:
Fix error checks. Bump revision.

diffstat:

 security/zoneminder/Makefile                          |   4 +-
 security/zoneminder/distinfo                          |   4 ++-
 security/zoneminder/patches/patch-src_zm__monitor.cpp |  22 +++++++++++++++++++
 security/zoneminder/patches/patch-src_zmf.cpp         |  13 +++++++++++
 4 files changed, 40 insertions(+), 3 deletions(-)

diffs (81 lines):

diff -r ef224948cf52 -r d14dad1fd86b security/zoneminder/Makefile
--- a/security/zoneminder/Makefile      Wed Feb 15 00:53:26 2017 +0000
+++ b/security/zoneminder/Makefile      Wed Feb 15 00:54:25 2017 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.30 2017/01/16 23:45:16 wiz Exp $
+# $NetBSD: Makefile,v 1.31 2017/02/15 00:54:25 joerg Exp $
 
 PKGNAME=       ${DISTNAME:S/ZoneMinder-/zoneminder-/}
 DISTNAME=      ZoneMinder-1.28.1
-PKGREVISION=   10
+PKGREVISION=   11
 CATEGORIES=    security
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=ZoneMinder/}
 GITHUB_PROJECT=        ZoneMinder
diff -r ef224948cf52 -r d14dad1fd86b security/zoneminder/distinfo
--- a/security/zoneminder/distinfo      Wed Feb 15 00:53:26 2017 +0000
+++ b/security/zoneminder/distinfo      Wed Feb 15 00:54:25 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2015/11/04 01:18:12 agc Exp $
+$NetBSD: distinfo,v 1.9 2017/02/15 00:54:25 joerg Exp $
 
 SHA1 (ZoneMinder-1.28.1.tar.gz) = 3e173ae1aac529b60d79a5fc668c107f0679d0a2
 RMD160 (ZoneMinder-1.28.1.tar.gz) = b3cc305656cb5b73d4ac0e21fe937c237467cdd1
@@ -9,6 +9,7 @@
 SHA1 (patch-scripts_ZoneMinder_lib_ZoneMinder_General_pm) = 841d897662958698a4dfcb95dd5bc43bb5fed568
 SHA1 (patch-scripts_zm_in) = 8f59085bb9293afa7aeb268000c75988e5371c66
 SHA1 (patch-src_Makefile_am) = 0f6571c9d5a3e688544f93d687d266e1b71f0f43
+SHA1 (patch-src_zm__monitor.cpp) = dcc3816686a6a7c375d4716d3663b4c922c90439
 SHA1 (patch-src_zm__thread.h) = 67dbd1e9c19df63fd120344cc8a36d663a724409
 SHA1 (patch-src_zm__timer.h) = 38080d08b5834e3dae713e81488944887ce5848b
 SHA1 (patch-src_zm__utils.cpp) = f6a109296146822014d57d39094390adcc5df760
@@ -21,5 +22,6 @@
 SHA1 (patch-src_zm_signal_cpp) = fa11938f55ccd50a1a9e949d6b58dd07773f2690
 SHA1 (patch-src_zm_thread_cpp) = c5f64697c3024c6c382f9ae2c5dbe9c21b529b6e
 SHA1 (patch-src_zmc_cpp) = d1046ddfad3a88bdd30501237834ec9e9fbc4c83
+SHA1 (patch-src_zmf.cpp) = a059b9ae068037c6f68c16dab861ed830dd1c7e2
 SHA1 (patch-web_Makefile.am) = ddb3815fa1b1799658034789302c8d3840f2b894
 SHA1 (patch-web_ajax_stream_php) = e8f811e63bedec03345b74db72c3d8014b3cc7f6
diff -r ef224948cf52 -r d14dad1fd86b security/zoneminder/patches/patch-src_zm__monitor.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/zoneminder/patches/patch-src_zm__monitor.cpp     Wed Feb 15 00:54:25 2017 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_zm__monitor.cpp,v 1.1 2017/02/15 00:54:25 joerg Exp $
+
+--- src/zm_monitor.cpp.orig    2017-02-15 00:50:20.875646245 +0000
++++ src/zm_monitor.cpp
+@@ -149,7 +149,7 @@ bool Monitor::MonitorLink::connect()
+             return( false );
+         }
+         mem_ptr = (unsigned char *)shmat( shm_id, 0, 0 );
+-        if ( mem_ptr < 0 )
++        if ( mem_ptr == (void *)-1 )
+         {
+             Debug( 3, "Can't shmat link memory: %s", strerror(errno) );
+             connected = false;
+@@ -534,7 +534,7 @@ bool Monitor::connect() {
+         exit( -1 );
+     }
+     mem_ptr = (unsigned char *)shmat( shm_id, 0, 0 );
+-    if ( mem_ptr < 0 )
++    if ( mem_ptr == (void *)-1 )
+     {
+         Error( "Can't shmat: %s", strerror(errno));
+         exit( -1 );
diff -r ef224948cf52 -r d14dad1fd86b security/zoneminder/patches/patch-src_zmf.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/zoneminder/patches/patch-src_zmf.cpp     Wed Feb 15 00:54:25 2017 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_zmf.cpp,v 1.1 2017/02/15 00:54:25 joerg Exp $
+
+--- src/zmf.cpp.orig   2017-02-15 00:51:13.260940737 +0000
++++ src/zmf.cpp
+@@ -293,7 +293,7 @@ int main( int argc, char *argv[] )
+               Debug( 1, "Got image, writing to %s", path );
+ 
+               FILE *fd = 0;
+-              if ( (fd = fopen( path, "w" )) < 0 )
++              if ( (fd = fopen( path, "w" )) == 0 )
+               {
+                       Error( "Can't fopen '%s': %s", path, strerror(errno) );
+                       exit( -1 );



Home | Main Index | Thread Index | Old Index