diff options
Diffstat (limited to 'net-im/gajim/files/gajim-0.15-SA48695.patch')
-rw-r--r-- | net-im/gajim/files/gajim-0.15-SA48695.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net-im/gajim/files/gajim-0.15-SA48695.patch b/net-im/gajim/files/gajim-0.15-SA48695.patch new file mode 100644 index 000000000000..93ee69ed1c3a --- /dev/null +++ b/net-im/gajim/files/gajim-0.15-SA48695.patch @@ -0,0 +1,24 @@ +Index: src/common/latex.py
+===================================================================
+--- src/common/latex.py (revision 13591)
++++ src/common/latex.py (revision 13759)
+@@ -60,6 +60,17 @@
+ def get_tmpfile_name():
+ random.seed()
+- int_ = random.randint(0, 100)
+- return os.path.join(gettempdir(), 'gajimtex_' + int_.__str__())
++ while(nb < 100):
++ int_ = random.randint(0, 10000)
++ filename = os.path.join(gettempdir(), 'gajimtex_' + int_.__str__())
++ # Check if a file to not overwrite it
++ ok = True
++ extensions = ['.tex', '.log', '.aux', '.dvi']
++ for ext in extensions:
++ if os.path.exists(filename + ext):
++ ok = False
++ break
++ if ok:
++ return filename
++ return filename
+
+ def write_latex(filename, str_):
|