aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2000-11-24 23:57:31 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2000-11-24 18:57:31 -0500
commit7257bbc671ea22b5a80319e50d67f2f72df765fa (patch)
treebd16c68c9c9e657ec2728e00df2b53f0360818bc /gcc/gcc.c
parent35a63b9486cbf0087693eef306b10a528177aa7a (diff)
downloadgcc-7257bbc671ea22b5a80319e50d67f2f72df765fa.zip
gcc-7257bbc671ea22b5a80319e50d67f2f72df765fa.tar.gz
gcc-7257bbc671ea22b5a80319e50d67f2f72df765fa.tar.bz2
* gcc.c (process_command): Use F_OK, not R_OK.
From-SVN: r37724
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 074cd6a..3ad74e4 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3719,7 +3719,7 @@ process_command (argc, argv)
argv[i] = convert_filename (argv[i], 0);
#endif
- if (strcmp (argv[i], "-") != 0 && access (argv[i], R_OK) < 0)
+ if (strcmp (argv[i], "-") != 0 && access (argv[i], F_OK) < 0)
{
perror_with_name (argv[i]);
error_count++;