blob: 493fa983878aa93a540e6358bdbce89bf9de85b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff -urN centericq-4.20.0.orig/src/hooks/gaduhook.cc centericq-4.20.0/src/hooks/gaduhook.cc
--- centericq-4.20.0.orig/src/hooks/gaduhook.cc 2005-01-19 00:20:17.000000000 +0100
+++ centericq-4.20.0/src/hooks/gaduhook.cc 2005-07-18 18:16:20.811398216 +0200
@@ -1,7 +1,7 @@
/*
*
* centericq gadu-gadu protocol handling class
-* $Id: centericq-4.20.0.CAN-2005-1914.patch,v 1.1 2006/02/17 16:38:52 blubb Exp $
+* $Id: centericq-4.20.0.CAN-2005-1914.patch,v 1.1 2006/02/17 16:38:52 blubb Exp $
*
* Copyright (C) 2004 by Konstantin Klyagin <konst@konst.org.ua>
*
@@ -906,8 +906,10 @@
if(!(t = (struct gg_token *) h->data) || !h->body)
return "";
- fname = (getenv("TMPDIR") ? getenv("TMPDIR") : "/tmp");
- fname += "/gg.token." + i2str(getpid());
+ do {
+ fname = (getenv("TMPDIR") ? getenv("TMPDIR") : "/tmp");
+ fname += "/gg.token." + i2str(getpid()) + i2str(time(0));
+ } while(!access(fname.c_str(), F_OK));
ofstream bf(fname.c_str());
|