search for: str_cpio

Displaying 7 results from an estimated 7 matches for "str_cpio".

Did you mean: str_cp
2015 Sep 15
1
[PATCH] daemon: initrd: print return value from failing process
...initrd_list (const char *path) CLEANUP_FREE char *filename = NULL; size_t allocsize; ssize_t len; + int ret; /* "zcat /sysroot/<path> | cpio --quiet -it", but path must be quoted. */ if (asprintf_nowarn (&cmd, "%s %R | %s --quiet -it", str_zcat, path, str_cpio) == -1) { @@ -74,8 +75,15 @@ do_initrd_list (const char *path) return NULL; } - if (pclose (fp) != 0) { - reply_with_perror ("pclose"); + ret = pclose (fp); + if (ret != 0) { + if (ret == -1) + reply_with_perror ("pclose"); + else { + if (WEXITSTA...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...ror ("lzop: incorrect value for level parameter"); return -1; diff --git a/daemon/cpio.c b/daemon/cpio.c index d1459b15d..09491ac9c 100644 --- a/daemon/cpio.c +++ b/daemon/cpio.c @@ -33,8 +33,6 @@ #include "actions.h" #include "optgroups.h" -GUESTFSD_EXT_CMD(str_cpio, cpio); - /* Has one FileOut parameter. */ /* Takes optional arguments, consult optargs_bitmask. */ int @@ -82,7 +80,7 @@ do_cpio_out (const char *dir, const char *format) if (asprintf_nowarn (&cmd, "cd %Q && find -print0 | %s -0 -o -H %s --quiet",...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...ror ("lzop: incorrect value for level parameter"); return -1; diff --git a/daemon/cpio.c b/daemon/cpio.c index d1459b15d..0601a19ca 100644 --- a/daemon/cpio.c +++ b/daemon/cpio.c @@ -33,7 +33,7 @@ #include "actions.h" #include "optgroups.h" -GUESTFSD_EXT_CMD(str_cpio, cpio); +DECLARE_EXTERNAL_COMMANDS ("cpio") /* Has one FileOut parameter. */ /* Takes optional arguments, consult optargs_bitmask. */ @@ -82,7 +82,7 @@ do_cpio_out (const char *dir, const char *format) if (asprintf_nowarn (&cmd, "cd %Q && find -print0 | %s -0 -o...
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...and (NULL, NULL, str_udevsettle, NULL); } diff --git a/daemon/initrd.c b/daemon/initrd.c index 2ded14a..d9bc0f7 100644 --- a/daemon/initrd.c +++ b/daemon/initrd.c @@ -30,6 +30,9 @@ #include "daemon.h" #include "actions.h" +GUESTFSD_EXT_CMD(str_zcat, zcat); +GUESTFSD_EXT_CMD(str_cpio, cpio); + char ** do_initrd_list (const char *path) { @@ -40,7 +43,7 @@ do_initrd_list (const char *path) size_t len; /* "zcat /sysroot/<path> | cpio --quiet -it", but path must be quoted. */ - if (asprintf_nowarn (&cmd, "zcat %R | cpio --quiet -it", path)...
2012 Aug 30
1
[PATCH] collect list of called external commands
...mmand (NULL, NULL, str_udevsettle, NULL); } diff --git a/daemon/initrd.c b/daemon/initrd.c index 2ded14a..b066a8a 100644 --- a/daemon/initrd.c +++ b/daemon/initrd.c @@ -30,6 +30,9 @@ #include "daemon.h" #include "actions.h" +GUESTFS_EXT_CMD(str_zcat, zcat); +GUESTFS_EXT_CMD(str_cpio, cpio); + char ** do_initrd_list (const char *path) { @@ -40,7 +43,7 @@ do_initrd_list (const char *path) size_t len; /* "zcat /sysroot/<path> | cpio --quiet -it", but path must be quoted. */ - if (asprintf_nowarn (&cmd, "zcat %R | cpio --quiet -it", path)...
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.
2017 Jul 24
6
[PATCH 0/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
Replace GUESTFSD_EXT_CMD with a command line option ‘./guestfsd --print-external-commands’