mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
interafces: logic error in previous #6637
This commit is contained in:
parent
a23b0784c3
commit
015d9b5c7c
@ -64,7 +64,7 @@ $interface_descr = convert_friendly_interface_to_friendly_descr($interface);
|
||||
$fp = fopen('/tmp/newwanipv6_' . $argument, 'a+');
|
||||
if (!$fp || !flock($fp, LOCK_EX | LOCK_NB)) {
|
||||
/* let go if not a forceful reload, otherwise block and wait */
|
||||
if ($force != 'yes' || (!$fp && !flock($fp, LOCK_EX))) {
|
||||
if ($force != 'yes' || !$fp || !flock($fp, LOCK_EX)) {
|
||||
fclose($fp);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user