diff --git a/gcc/choose-temp.c b/gcc/choose-temp.c index 2afa68a0dc3..2f35c4701db 100644 --- a/gcc/choose-temp.c +++ b/gcc/choose-temp.c @@ -80,7 +80,7 @@ try (dir, base) if (base != 0) return base; if (dir != 0 - && access (dir, R_OK | W_OK) == 0) + && access (dir, R_OK | W_OK | X_OK) == 0) return dir; return 0; }