diff options
Diffstat (limited to 'security/zoneminder/patches/patch-src_zmf.cpp')
-rw-r--r-- | security/zoneminder/patches/patch-src_zmf.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/security/zoneminder/patches/patch-src_zmf.cpp b/security/zoneminder/patches/patch-src_zmf.cpp index f7341d08d16..eab18890f8b 100644 --- a/security/zoneminder/patches/patch-src_zmf.cpp +++ b/security/zoneminder/patches/patch-src_zmf.cpp @@ -1,19 +1,9 @@ -$NetBSD: patch-src_zmf.cpp,v 1.2 2019/12/19 22:23:19 joerg Exp $ +$NetBSD: patch-src_zmf.cpp,v 1.3 2020/08/25 16:42:21 gdt Exp $ -bind can be found in namespace std too. -Fix error handling. +\todo Explain ---- src/zmf.cpp.orig 2015-02-05 02:52:37.000000000 +0000 +--- src/zmf.cpp.orig 2017-02-15 00:51:13.260940737 +0000 +++ src/zmf.cpp -@@ -59,7 +59,7 @@ int OpenSocket( int monitor_id ) - strncpy( addr.sun_path, sock_path, sizeof(addr.sun_path) ); - addr.sun_family = AF_UNIX; - -- if ( bind( sd, (struct sockaddr *)&addr, strlen(addr.sun_path)+sizeof(addr.sun_family)) < 0 ) -+ if ( ::bind( sd, (struct sockaddr *)&addr, strlen(addr.sun_path)+sizeof(addr.sun_family)) < 0 ) - { - Error( "Can't bind: %s", strerror(errno) ); - exit( -1 ); @@ -293,7 +293,7 @@ int main( int argc, char *argv[] ) Debug( 1, "Got image, writing to %s", path ); |