This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libiberty: fix running extension-less binaries on windows


I think it's better to search for the last / or \ in the program, then
look for '.' after that.  You have to be careful about running "foo"
when both "foo" and "foo.exe" exist - it may try to run the first as a
COM file and crash.

An alternate idea is to put the "" extension at the end of the list,
or at least after ".exe".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]