pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/zoneminder



Module Name:    pkgsrc
Committed By:   joerg
Date:           Wed Feb 15 00:54:25 UTC 2017

Modified Files:
        pkgsrc/security/zoneminder: Makefile distinfo
Added Files:
        pkgsrc/security/zoneminder/patches: patch-src_zm__monitor.cpp
            patch-src_zmf.cpp

Log Message:
Fix error checks. Bump revision.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 pkgsrc/security/zoneminder/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/security/zoneminder/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/security/zoneminder/patches/patch-src_zm__monitor.cpp \
    pkgsrc/security/zoneminder/patches/patch-src_zmf.cpp

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

Modified files:

Index: pkgsrc/security/zoneminder/Makefile
diff -u pkgsrc/security/zoneminder/Makefile:1.30 pkgsrc/security/zoneminder/Makefile:1.31
--- pkgsrc/security/zoneminder/Makefile:1.30    Mon Jan 16 23:45:16 2017
+++ pkgsrc/security/zoneminder/Makefile Wed Feb 15 00:54:25 2017
@@ -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

Index: pkgsrc/security/zoneminder/distinfo
diff -u pkgsrc/security/zoneminder/distinfo:1.8 pkgsrc/security/zoneminder/distinfo:1.9
--- pkgsrc/security/zoneminder/distinfo:1.8     Wed Nov  4 01:18:12 2015
+++ pkgsrc/security/zoneminder/distinfo Wed Feb 15 00:54:25 2017
@@ -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-configure_ac) = 110a7a10506b
 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_remote_camera_h) = 0d
 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

Added files:

Index: pkgsrc/security/zoneminder/patches/patch-src_zm__monitor.cpp
diff -u /dev/null pkgsrc/security/zoneminder/patches/patch-src_zm__monitor.cpp:1.1
--- /dev/null   Wed Feb 15 00:54:25 2017
+++ pkgsrc/security/zoneminder/patches/patch-src_zm__monitor.cpp        Wed Feb 15 00:54:25 2017
@@ -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 );
Index: pkgsrc/security/zoneminder/patches/patch-src_zmf.cpp
diff -u /dev/null pkgsrc/security/zoneminder/patches/patch-src_zmf.cpp:1.1
--- /dev/null   Wed Feb 15 00:54:25 2017
+++ pkgsrc/security/zoneminder/patches/patch-src_zmf.cpp        Wed Feb 15 00:54:25 2017
@@ -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