Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 409b0d6 in mainline


Ignore:
Timestamp:
2009-04-25T16:49:33Z (13 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master
Children:
a31efeb
Parents:
9701d49
Message:

Fix interpretation of return value. This caused loader to crash instead of returning an error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loader/main.c

    r9701d49 r409b0d6  
    232232       
    233233        rc = elf_load_file(pathname, 0, &prog_info);
    234         if (rc < 0) {
     234        if (rc != EE_OK) {
    235235                DPRINTF("Failed to load executable '%s'.\n", pathname);
    236236                ipc_answer_0(rid, EINVAL);
     
    251251       
    252252        rc = elf_load_file(prog_info.interp, 0, &interp_info);
    253         if (rc < 0) {
     253        if (rc != EE_OK) {
    254254                DPRINTF("Failed to load interpreter '%s.'\n",
    255255                    prog_info.interp);
Note: See TracChangeset for help on using the changeset viewer.