2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

HMCCU: Fixed bug with queue file permissions

git-svn-id: https://svn.fhem.de/fhem/trunk@11121 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
fhemzap 2016-03-24 16:57:11 +00:00
parent e12d1c11c1
commit 8836b4d883

View File

@ -2969,8 +2969,8 @@ sub HMCCU_QueueOpen ($$)
$hash->{hmccu}{queue}{queue_file} = $queue_file;
$hash->{hmccu}{queue}{idx_file} = $idx_file;
$hash->{hmccu}{queue}{queue} = new IO::File $queue_file, O_CREAT | O_RDWR, $mode or return 0;
$hash->{hmccu}{queue}{idx} = new IO::File $idx_file, O_CREAT | O_RDWR, $mode or return 0;
$hash->{hmccu}{queue}{queue} = new IO::File $queue_file, O_CREAT | O_RDWR, oct($mode) or return 0;
$hash->{hmccu}{queue}{idx} = new IO::File $idx_file, O_CREAT | O_RDWR, oct($mode) or return 0;
### Default ptr to 0, replace it with value in idx file if one exists
$hash->{hmccu}{queue}{idx}->sysseek(0, SEEK_SET);