We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee704dc commit 6700fa0Copy full SHA for 6700fa0
os2/os2.c
@@ -5047,14 +5047,14 @@ my_tmpnam (char *str)
5047
char *p = PerlEnv_getenv("TMP"), *tpath;
5048
5049
if (!p) p = PerlEnv_getenv("TEMP");
5050
- ENV_LOCK;
+ ENV_READ_LOCK;
5051
tpath = tempnam(p, "pltmp");
5052
if (str && tpath) {
5053
strcpy(str, tpath);
5054
- ENV_UNLOCK;
+ ENV_READ_UNLOCK;
5055
return str;
5056
}
5057
5058
return tpath;
5059
5060
0 commit comments