Merge branch 'release-1.34' of github.com:ZoneMinder/zoneminder into release-1.34

This commit is contained in:
Isaac Connor 2020-12-03 14:29:01 -05:00
commit d781d7169a
1 changed files with 1 additions and 1 deletions

View File

@ -557,7 +557,7 @@ bool Monitor::connect() {
Debug(3, "Connecting to monitor. Purpose is %d", purpose ); Debug(3, "Connecting to monitor. Purpose is %d", purpose );
#if ZM_MEM_MAPPED #if ZM_MEM_MAPPED
snprintf(mem_file, sizeof(mem_file), "%s/zm.mmap.%d", staticConfig.PATH_MAP.c_str(), id); snprintf(mem_file, sizeof(mem_file), "%s/zm.mmap.%d", staticConfig.PATH_MAP.c_str(), id);
map_fd = open(mem_file, O_RDWR|O_CREAT, (mode_t)0600); map_fd = open(mem_file, O_RDWR|O_CREAT, (mode_t)0660);
if ( map_fd < 0 ) { if ( map_fd < 0 ) {
Error("Can't open memory map file %s, probably not enough space free: %s", mem_file, strerror(errno)); Error("Can't open memory map file %s, probably not enough space free: %s", mem_file, strerror(errno));
return false; return false;