[coldfire-gnu-discuss] system() function broken
Michel Marti
michel.marti at objectxp.com
Sun May 21 16:25:11 UTC 2006
Nathan Sidwell wrote:
> ah, so IIUC, it appears the "/bin/busybox" string is being transformed
> into "/bin/busybox ?", so busybox is trying to find the '?' applet.
"/bin/busybox -c ?" that is...
> thanks for this information. At the moment we're unable to reproduce
> the problem. Have you tried a shell builtin, such as
> system ("echo hello");
Here's what happens when calling system("echo hello"):
# ./test
?<... '?' repeats about 8000 times...>?: applet not found
Actually, the shell shows '?', but the real value of these chars is 0xff (as
seen when redirecting stderr and piping it through 'hd').
And here's the output of system("/sbin/ifconfig eth0"):
I?z?(?xp;;??????a??9?RNC??o%???g?!??"?q93S?R?QaGaG?JJ?$U|?t?U?^%u?}??la?5?F?4a???(V?ݞw??E???????!Šɡ?????;?Ī???????gJnyp??j??>?w?Yd?Ч%cդ???Ҳo?%??W?2Ɍv?B-???ڋ,WR???i"?r,???Ƶ??pu?:l???p?ۏ'????W???u??>??Q?^??S?~?RqOuN2?9>???x?v?f%K_?????uOo?-s????P?I???n?r??(???f+Iܘ1<)?{zB-YR?]??VyFÙ?:
applet not found
More information about the coldfire-gnu-discuss
mailing list