diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-04-23 20:19:29 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-04-23 20:19:29 +0000 |
commit | 8b0792a4759eea9f4a85804ee0ace9f57357c0c7 (patch) | |
tree | b9e7bc0fb4414e0e1ae70d4855d600b2ddad3657 /net-im/gajim/files | |
parent | version bump (diff) | |
download | historical-8b0792a4759eea9f4a85804ee0ace9f57357c0c7.tar.gz historical-8b0792a4759eea9f4a85804ee0ace9f57357c0c7.tar.bz2 historical-8b0792a4759eea9f4a85804ee0ace9f57357c0c7.zip |
net-im/gajim: Add backport fix for https://secunia.com/advisories/48695/, #412215
Package-Manager: portage-2.2.0_alpha101/cvs/Linux x86_64
Diffstat (limited to 'net-im/gajim/files')
-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_):
|