Files
freeipa/ipaserver
Christian Heimes f4001e1c53 Add safe DirectiveSetter context manager
installutils.set_directive() is both inefficient and potentially
dangerous. It does not ensure that the whole file is written and
properly synced to disk. In worst case it could lead to partially
written or destroyed config files.

The new DirectiveSetter context manager wraps everything under an easy
to use interface.

https://pagure.io/freeipa/issue/7312

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2017-12-12 14:13:54 +01:00
..
2017-12-06 16:54:04 +01:00
2017-12-12 12:53:21 +01:00
2017-12-07 16:55:40 +01:00
2010-12-20 17:19:53 -05:00
2017-06-01 09:24:24 +02:00
2016-10-20 18:43:37 +02:00
2017-12-06 16:54:04 +01:00