From a87f75eee0ccbb569e0982feefa0858aa58ff3fa Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 1 Aug 2014 11:27:51 -0400 Subject: [PATCH] any size discrepancy is caused for bailing --- scripts/ZoneMinder/lib/ZoneMinder/Memory/Mapped.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Memory/Mapped.pm b/scripts/ZoneMinder/lib/ZoneMinder/Memory/Mapped.pm index 6af97122c..d2f4db99b 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Memory/Mapped.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Memory/Mapped.pm @@ -84,7 +84,7 @@ sub zmMemAttach( $$ ) if ( !defined($monitor->{MMapAddr}) ) { my $mmap_file = $Config{ZM_PATH_MAP}."/zm.mmap.".$monitor->{Id}; - if ( -s $mmap_file < $size ) { + if ( -s $mmap_file != $size ) { Error( sprintf( "Memory map file '%s' should have been %d but was instead %d", $mmap_file, $size, -s $mmap_file ) ); return ( undef ); }