summaryrefslogtreecommitdiff
path: root/mysys/my_tempnam.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-10-31 03:22:31 +0200
committermonty@hundin.mysql.fi <>2001-10-31 03:22:31 +0200
commit5a9ce774dc413ac7b6342a9097f4e2456d0df63f (patch)
treea7cd1bf6f7f295d11ffce88081f69bc1963bfd06 /mysys/my_tempnam.c
parent7f38949c6be7dba794a786b4fe53132f7f5751e5 (diff)
downloadmariadb-git-5a9ce774dc413ac7b6342a9097f4e2456d0df63f.tar.gz
Update for OS2 (patch from Yuri Dario).
Use LONG_TIMEOUT (one year) instead of ~0 for long timeouts Fixed error messages. Fixed problem with const propagation when comparing columns of different types
Diffstat (limited to 'mysys/my_tempnam.c')
-rw-r--r--mysys/my_tempnam.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/my_tempnam.c b/mysys/my_tempnam.c
index 7da037e8d49..6b7ac099581 100644
--- a/mysys/my_tempnam.c
+++ b/mysys/my_tempnam.c
@@ -95,6 +95,9 @@ my_string my_tempnam(const char *dir, const char *pfx,
// changing environ variable doesn't work with VACPP
char buffer[256];
sprintf( buffer, "TMP=%s", dir);
+ // remove ending backslash
+ if (buffer[strlen(buffer)-1] == '\\')
+ buffer[strlen(buffer)-1] = '\0';
putenv( buffer);
#else
old_env=(char**)environ;