Author: dmeyer
Date: Sun Feb 19 20:35:56 2006
New Revision: 1206
Modified:
trunk/imlib2/src/imlib2.c
Log:
use special kaa dir to make it make secure, needs also be done for shm
Modified: trunk/imlib2/src/imlib2.c
==============================================================================
--- trunk/imlib2/src/imlib2.c (original)
+++ trunk/imlib2/src/imlib2.c Sun Feb 19 20:35:56 2006
@@ -177,7 +177,7 @@
prng_seeded = 1;
srand((unsigned int)time(0)*getpid());
}
- snprintf(filename, sizeof(filename), "pyimlib2-img-%d", rand());
+ snprintf(filename, sizeof(filename), "kaa-imlib2-img-%d", rand());
#ifdef HAVE_POSIX_SHMEM
// Faster to use shared memory, if available ...
@@ -193,7 +193,7 @@
}
// Shmem failed, fall back to file system
#endif
- snprintf(path, sizeof(path), "/tmp/%s", filename);
+ snprintf(path, sizeof(path), "/tmp/kaa-%d/%s", getuid(), filename);
fd = open(path, O_RDWR | O_CREAT | O_EXCL, 0600);
if (fd == -1) {
PyErr_Format(PyExc_IOError, "Unable to save temporary file '%s': %s",
path, strerror(errno));
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog