ldlinux: Complain to user on failure to perform file operations
commit0174945b6b604425e8f576c0af0908ce00cdc493
authorMatt Fleming <matt.fleming@intel.com>
Thu, 29 Nov 2012 09:34:18 +0000 (29 09:34 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 29 Nov 2012 13:28:47 +0000 (29 13:28 +0000)
treeea0b2b8958fb687dd8c20f423606f32101080321
parent771aea5ed2eb791717eea939089f8246a47d8634
ldlinux: Complain to user on failure to perform file operations

If we fail to chdir or to execute a COM32 file we should inform the
user so that they can debug the problem. We don't currently print
anything if the user tries to execute a regular file, such as a config
file, as an COM32 image.

We also shouldn't be returning the exit value of the module from
spawn_load(), because we have no way of doing anything useful with it,
and just because a main() function returns -1 doesn't mean it failed
to run. Modules need to take care of printing any error messages
themselves.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/elflink/ldlinux/execute.c
com32/elflink/ldlinux/readconfig.c
com32/lib/sys/module/exec.c