python-cysignals/python-cysignals-crash-logs.patch
Jerry James 972c9aaa7f Do not try to write to an unwritable directory (bz 1751021).
Fix cross-references in the documentation.
2020-01-25 09:32:22 -07:00

15 lines
473 B
Diff

--- src/scripts/cysignals-CSI.orig 2019-10-25 09:09:23.892784878 -0600
+++ src/scripts/cysignals-CSI 2019-10-25 09:24:39.077211746 -0600
@@ -172,7 +172,10 @@ def save_backtrace(output):
except KeyError:
pass
- mkdir_p(bt_dir)
+ try:
+ mkdir_p(bt_dir)
+ except PermissionError:
+ return None
if bt_days >= 0:
prune_old_logs(bt_dir, bt_days)
f, filename = tempfile.mkstemp(dir=bt_dir, prefix='crash_', suffix='.log')