Author: mturk
Date: Tue Aug 4 15:08:19 2009
New Revision: 800835
URL: http://svn.apache.org/viewvc?rev=800835&view=rev
Log:
Use the same prefix for temp file
Modified:
commons/sandbox/runtime/trunk/src/main/native/os/linux/execmem.c
Modified: commons/sandbox/runtime/trunk/src/main/native/os/linux/execmem.c
URL:
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/linux/execmem.c?rev=800835&r1=800834&r2=800835&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/linux/execmem.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/linux/execmem.c Tue Aug 4
15:08:19 2009
@@ -71,7 +71,7 @@
int fd;
while (tmp_path[i]) {
strcpy(path, tmp_path[i++]);
- strcat(path, "/acXXXXXX");
+ strcat(path, "/xmXXXXXX");
if ((fd = mkstemp(path)) != -1) {
unlink(path);
return fd;
@@ -82,7 +82,7 @@
char *es = getenv(tmp_envs[i++]);
if (es) {
strcpy(path, es);
- strcat(path, "/mmXXXXXX");
+ strcat(path, "/xmXXXXXX");
if ((fd = mkstemp(path)) != -1) {
unlink(path);
return fd;