8172188: JDI tests fail due to "permission denied" when creating temp file
Reviewed-by: hseigel, mseledtsov
This commit is contained in:
parent
dc6818c0c9
commit
68447bd8a3
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -276,10 +276,10 @@ setup()
|
|||||||
# treat them as control chars on mks (eg \t is tab)
|
# treat them as control chars on mks (eg \t is tab)
|
||||||
# Oops; windows mks really seems to want this cat line
|
# Oops; windows mks really seems to want this cat line
|
||||||
# to start in column 1
|
# to start in column 1
|
||||||
if [ -w "$SystemRoot" ] ; then
|
if [ -w "$Temp" ] ; then
|
||||||
tmpFile=$SystemRoot/tmp.$$
|
tmpFile=$Temp/tmp.$$
|
||||||
elif [ -w "$SYSTEMROOT" ] ; then
|
elif [ -w "$TEMP" ] ; then
|
||||||
tmpFile=$SYSTEMROOT/tmp.$$
|
tmpFile=$TEMP/tmp.$$
|
||||||
else
|
else
|
||||||
tmpFile=tmp.$$
|
tmpFile=tmp.$$
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user