PacketFence - BTS - PacketFence
View Issue Details
0001364PacketFencecorepublic2012-01-11 09:492015-02-18 10:55
obilodeau 
 
normalminorrandom
closedopen 
 
 
0001364: our Config::IniFiles usage is not bullet proof
See 0000960: "Using ->ReWriteConfig instead of ->WriteConfig in pfcmd could've fixed it however I just read that both don't perform locking or transaction control so it would be worse if we read an incompletely written file then modify it and write it back."

See https://metacpan.org/module/Config::IniFiles#BUGS [^]

Because Config::IniFiles performs no locking, the following would be possible: someone makes a change between the time pfcmd reads and write another change. The original change would be lost.

Because pfcmd reads, performs the change then writes. Chances are probably very low that someone ever got bitten by this.
No tags attached.
Issue History
2012-01-11 09:49obilodeauNew Issue
2012-01-11 09:49obilodeauDescription Updated
2015-02-18 10:55lmunroNote Added: 0003871
2015-02-18 10:55lmunroStatusnew => closed

Notes
(0003871)
lmunro   
2015-02-18 10:55   
Obsolete bug tracker entries.
PF 4 introduced changes that either make these irrelevant or impossible to reproduce.

New issues are moving to github issues.