Commit e0040a8e by Richard Kenner

(convert_filename): Don't start looking for '.' until after last

directory separator.

From-SVN: r12724
parent a728e7a3
......@@ -2131,7 +2131,11 @@ convert_filename (name, do_exe)
if (! do_exe || EXECUTABLE_SUFFIX[0] == 0 || (len == 2 && name[0] == '-'))
return name;
for (i = 0; i < len; i++)
for (i = len - 1; i >= 0; i--)
if (name[i] == '/' || name[i] == DIR_SEPARATOR)
break;
for (i++; i < len; i++)
if (name[i] == '.')
return name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment