This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/64094] "No such file or directory" -> "No such file"
- From: "jg at jguk dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Dec 2018 11:16:06 +0000
- Subject: [Bug driver/64094] "No such file or directory" -> "No such file"
- Auto-submitted: auto-generated
- References: <bug-64094-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64094
--- Comment #9 from Jonny Grant <jg at jguk dot org> ---
(In reply to Jonny Grant from comment #6)
> (2)
> $ mkdir testdir.cpp
>
> $ gcc -o main testdir.cpp
> cc1plus: fatal error: testdir.cpp: No such file or directory
> compilation terminated.
Can files be checked that they are files? a quick stat() on each of them before
passing them along?
eg. stat() and then S_ISDIR(statbuf.st_mode) and display strerror(EISDIR), then
check if a regular file with S_ISREG(statbuf.st_mode)