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-03-17 19:54:16 +00:00
2014-09-05 15:57:56 +02:00
2014-11-26 13:22:32 +01:00
2014-03-17 19:54:16 +00:00
2014-04-16 12:01:17 +01:00
2015-07-13 12:31:52 +01:00
2014-11-25 14:34:27 +00:00
2015-07-13 12:31:52 +01:00
2015-01-17 09:08:15 +00:00
2014-01-28 21:02:11 +00:00
2015-06-23 21:31:31 +01:00
2014-05-07 09:05:29 +01:00
2015-01-17 09:08:15 +00:00
2015-07-08 12:26:59 +02:00
2014-07-17 11:40:40 +01:00
2014-11-26 16:15:47 +00:00
2015-07-17 13:27:13 +01:00
2015-07-17 13:27:13 +01:00
2015-01-17 09:08:15 +00:00
2014-08-19 16:51:13 +01:00
2015-07-08 12:26:47 +02:00
2015-07-02 16:08:44 +01:00
2015-01-17 09:08:15 +00:00
2014-03-14 13:19:42 +00:00
2015-01-17 09:08:15 +00:00
2015-07-17 13:27:13 +01:00
2015-06-29 23:08:43 +01:00
2014-10-23 19:03:11 +02:00
2015-09-15 10:19:58 +02:00
2015-01-17 09:08:15 +00:00
2015-06-29 23:08:46 +01:00
2015-01-17 09:08:15 +00:00
2014-10-23 19:03:11 +02:00
2015-07-17 13:27:13 +01:00
2015-07-17 13:27:13 +01:00
2013-12-18 15:15:52 +00:00
2014-10-23 19:03:11 +02:00
2015-01-17 09:08:15 +00:00
2014-11-26 16:15:47 +00:00
2015-07-17 13:27:13 +01:00
2015-07-17 13:27:13 +01:00
2015-01-19 16:47:53 +01:00
2014-10-23 19:03:11 +02:00
2014-07-25 16:03:09 +01:00
2015-07-08 12:26:52 +02:00
2015-01-17 09:08:15 +00:00
2015-07-17 13:27:13 +01:00
2015-07-02 16:08:44 +01:00
2015-01-20 16:09:53 +01:00
2015-01-17 09:08:15 +00:00
2014-05-21 15:03:17 +02:00
2015-06-18 10:19:41 +01:00
2015-07-17 13:27:13 +01:00
2014-11-05 14:50:54 +00:00
2015-07-02 11:08:52 +02:00
2015-07-17 13:27:13 +01:00
2015-07-21 18:12:52 +02: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-17 13:27:13 +01:00
2015-06-18 10:19:41 +01:00
2015-07-17 13:27:13 +01:00
2015-07-02 16:08:44 +01:00