Files
libguestfs/daemon
Pino Toscano 59a9101e44 daemon: initrd: print return value from failing process
If either zcat or cpio fails when spawned in initrd-list, pclose will
return the actual return value of it, but reply_with_perror still uses
errno regardless; thus, the reported error is:

  libguestfs: error: initrd_list: pclose: Success

which is not much helpful.

Instead, when pclose returns > 0, extract the actual return value of the
subprocess, and print that. Thus now we get for example:

  libguestfs: error: initrd_list: pclose: command failed with return code 1
2015-09-15 10:19:58 +02:00
..
2014-11-26 13:22:32 +01:00
2015-01-17 09:08:15 +00:00
2015-01-17 09:08:15 +00:00
2015-01-17 09:08:15 +00:00
2015-07-02 16:08:44 +01:00
2015-01-17 09:08:15 +00:00
2015-01-17 09:08:15 +00:00
2014-10-23 19:03:11 +02:00
2015-01-17 09:08:15 +00:00
2015-01-17 09:08:15 +00:00
2014-10-23 19:03:11 +02:00
2014-10-23 19:03:11 +02:00
2015-01-17 09:08:15 +00:00
2014-10-23 19:03:11 +02:00
2015-07-08 12:26:52 +02:00
2015-01-17 09:08:15 +00:00
2015-07-02 16:08:44 +01:00
2015-01-17 09:08:15 +00:00
2015-07-02 16:08:44 +01:00
2015-01-17 09:08:15 +00:00
2014-10-23 19:03:11 +02:00
2015-07-02 16:08:44 +01:00