forked from pool/fail2ban
ecab052fcb
Fixed strptime thread safety issue; bnc#914075 gh#fail2ban/fail2ban#906 OBS-URL: https://build.opensuse.org/request/show/282526 OBS-URL: https://build.opensuse.org/package/show/security/fail2ban?expand=0&rev=54
13 lines
432 B
Diff
13 lines
432 B
Diff
diff -ur fail2ban-0.8.14.orig/common/__init__.py fail2ban-0.8.14/common/__init__.py
|
|
--- fail2ban-0.8.14.orig/common/__init__.py 2014-08-19 22:23:33.000000000 +0200
|
|
+++ fail2ban-0.8.14/common/__init__.py 2015-01-21 21:51:13.425141175 +0100
|
|
@@ -28,3 +28,7 @@
|
|
|
|
# Custom debug level
|
|
logging.HEAVYDEBUG = 5
|
|
+
|
|
+from time import strptime
|
|
+# strptime thread safety hack-around - http://bugs.python.org/issue7980
|
|
+strptime("2012", "%Y")
|
|
|