forked from pool/selinux-policy
23 lines
776 B
Diff
23 lines
776 B
Diff
|
Index: fedora-policy/support/sedoctool.py
|
||
|
===================================================================
|
||
|
--- fedora-policy.orig/support/sedoctool.py 2019-08-21 13:54:02.175947408 +0200
|
||
|
+++ fedora-policy/support/sedoctool.py 2019-08-21 13:57:57.323782524 +0200
|
||
|
@@ -810,7 +810,7 @@ if booleans:
|
||
|
namevalue_list = []
|
||
|
if os.path.exists(booleans):
|
||
|
try:
|
||
|
- conf = open(booleans, 'r')
|
||
|
+ conf = open(booleans, 'r', errors='replace')
|
||
|
except:
|
||
|
error("Could not open booleans file for reading")
|
||
|
|
||
|
@@ -831,7 +831,7 @@ if modules:
|
||
|
namevalue_list = []
|
||
|
if os.path.exists(modules):
|
||
|
try:
|
||
|
- conf = open(modules, 'r')
|
||
|
+ conf = open(modules, 'r', errors='replace')
|
||
|
except:
|
||
|
error("Could not open modules file for reading")
|
||
|
namevalue_list = get_conf(conf)
|