aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2021-11-27 18:16:50 -0800
committerAndrew Pinski <apinski@marvell.com>2021-11-29 00:42:45 +0000
commit68332ab7ec58a89660db82569c5f4c2251d59741 (patch)
tree285de25611e1138bab8aa0838887da4d9654b2d5 /gcc
parent2f0dd172bc63555457cda42c31e9b19f280dd40a (diff)
downloadgcc-68332ab7ec58a89660db82569c5f4c2251d59741.zip
gcc-68332ab7ec58a89660db82569c5f4c2251d59741.tar.gz
gcc-68332ab7ec58a89660db82569c5f4c2251d59741.tar.bz2
Fix PR 19089: Environment variable TMP may yield gcc: abort
Even though I cannot reproduce the ICE any more, this is still a bug. We check already to see if we can access the directory but never check to see if the path is actually a directory. This adds the check and now we reject the file as not usable as a tmp directory. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. libiberty/ChangeLog: * make-temp-file.c (try_dir): Check to see if the dir is actually a directory.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions