savecore fails with dump archive but return EXIT_OK
cmd - userland programs
- savecore -vf /var/crash/myshost/vmdump.3
savecore: bad magic number 3a650c00
- echo $?
And looking through read_dumphdr():
if (dumphdr.dump_magic != DUMP_MAGIC) logprint(SC_SL_NONE | SC_EXIT_OK, "bad magic number %x", dumphdr.dump_magic);
it seems other cases like version mismatch and others also use SC_EXIT_OK. Probably here should be SC_EXIT_PEND instead of EXIT_OK.