Acolyte of the Butterfly
Posts: 109 from 2013/12/5
@Henes
I just took a quick look at the ixemul sources (just noticed they're available on the MorphOS downloads page).
The argv[0] evil seems to happen here:
file: _cli_parse.c
lines: 424-429
Code:
/* some stupid shells (like Wsh...) pass the WHOLE path of the
* started program. We simply cut off what we don't want ;-)) */
for (arglen = 1; arglen <= arg0[0]; arglen++)
if (arg0[arglen] == ' ' || arg0[arglen] == 't')
break;
Too funny that the guy who's responsable for that put a comment there to point out how smart he is (or how dumb others are)

Okay, now, shall I report that snippet through MorphOS' integrated bug reporter? Or how do I make sure this gets fixed?
Cheers,
Daniel
[ Editiert durch Daytona675x 03.08.2014 - 12:01 ]