search for: str_xarg

Displaying 10 results from an estimated 10 matches for "str_xarg".

Did you mean: str_arg
2014 Jan 19
1
[PATCH] daemon: add missing GUESTFSD_EXT_CMD usage
...nd (NULL, NULL, str_cp, "/etc/resolv.conf", rs->sysroot_etc_resolv_conf, NULL)); rs->mounted = true; diff --git a/daemon/debug.c b/daemon/debug.c index 9fe57fc..b5470d7 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -41,6 +41,7 @@ GUESTFSD_EXT_CMD(str_xargs, xargs); GUESTFSD_EXT_CMD(str_file, file); GUESTFSD_EXT_CMD(str_grep, grep); GUESTFSD_EXT_CMD(str_gawk, gawk); +GUESTFSD_EXT_CMD(str_sh, sh); /* This command exposes debugging information, internals and * status. There is no comprehensive documentation for this @@ -335,7 +336,7 @@ debug_b...
2012 Sep 03
1
[PATCH] daemon: provide list of checksum commands
...ols. Signed-off-by: Olaf Hering <olaf at aepfle.de> --- WARNING: not compile tested ... diff --git a/daemon/checksum.c b/daemon/checksum.c index f2e040d..f16a7c0 100644 --- a/daemon/checksum.c +++ b/daemon/checksum.c @@ -31,24 +31,31 @@ GUESTFSD_EXT_CMD(str_find, find); GUESTFSD_EXT_CMD(str_xargs, xargs); +GUESTFSD_EXT_CMD(str_cksum, cksum); +GUESTFSD_EXT_CMD(str_md5sum, md5sum); +GUESTFSD_EXT_CMD(str_sha1sum, sha1sum); +GUESTFSD_EXT_CMD(str_sha224sum, sha224sum); +GUESTFSD_EXT_CMD(str_sha256sum, sha256sum); +GUESTFSD_EXT_CMD(str_sha384sum, sha384sum); +GUESTFSD_EXT_CMD(str_sha512sum, sha5...
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...S_BTRFS_FSCK_SUPERBLOCK_BITMASK) { diff --git a/daemon/checksum.c b/daemon/checksum.c index 2cc4a2b..f2e040d 100644 --- a/daemon/checksum.c +++ b/daemon/checksum.c @@ -29,6 +29,9 @@ #include "daemon.h" #include "actions.h" +GUESTFSD_EXT_CMD(str_find, find); +GUESTFSD_EXT_CMD(str_xargs, xargs); + static const char * program_of_csum (const char *csumtype) { @@ -150,7 +153,8 @@ do_checksums_out (const char *csumtype, const char *dir) } char *cmd; - if (asprintf_nowarn (&cmd, "cd %Q && find -type f -print0 | xargs -0 %s", + if (asprintf_nowarn (&a...
2012 Aug 30
1
[PATCH] collect list of called external commands
...TFS_BTRFS_FSCK_SUPERBLOCK_BITMASK) { diff --git a/daemon/checksum.c b/daemon/checksum.c index 2cc4a2b..8d6cbdb 100644 --- a/daemon/checksum.c +++ b/daemon/checksum.c @@ -29,6 +29,9 @@ #include "daemon.h" #include "actions.h" +GUESTFS_EXT_CMD(str_find, find); +GUESTFS_EXT_CMD(str_xargs, xargs); + static const char * program_of_csum (const char *csumtype) { @@ -150,7 +153,8 @@ do_checksums_out (const char *csumtype, const char *dir) } char *cmd; - if (asprintf_nowarn (&cmd, "cd %Q && find -type f -print0 | xargs -0 %s", + if (asprintf_nowarn (&a...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
..., NULL); if (r == -1) { diff --git a/daemon/checksum.c b/daemon/checksum.c index da47a0931..088b04165 100644 --- a/daemon/checksum.c +++ b/daemon/checksum.c @@ -29,33 +29,23 @@ #include "daemon.h" #include "actions.h" -GUESTFSD_EXT_CMD(str_find, find); -GUESTFSD_EXT_CMD(str_xargs, xargs); -GUESTFSD_EXT_CMD(str_cksum, cksum); -GUESTFSD_EXT_CMD(str_md5sum, md5sum); -GUESTFSD_EXT_CMD(str_sha1sum, sha1sum); -GUESTFSD_EXT_CMD(str_sha224sum, sha224sum); -GUESTFSD_EXT_CMD(str_sha256sum, sha256sum); -GUESTFSD_EXT_CMD(str_sha384sum, sha384sum); -GUESTFSD_EXT_CMD(str_sha512sum, sha5...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
..., NULL); if (r == -1) { diff --git a/daemon/checksum.c b/daemon/checksum.c index da47a0931..244ff6319 100644 --- a/daemon/checksum.c +++ b/daemon/checksum.c @@ -29,33 +29,27 @@ #include "daemon.h" #include "actions.h" -GUESTFSD_EXT_CMD(str_find, find); -GUESTFSD_EXT_CMD(str_xargs, xargs); -GUESTFSD_EXT_CMD(str_cksum, cksum); -GUESTFSD_EXT_CMD(str_md5sum, md5sum); -GUESTFSD_EXT_CMD(str_sha1sum, sha1sum); -GUESTFSD_EXT_CMD(str_sha224sum, sha224sum); -GUESTFSD_EXT_CMD(str_sha256sum, sha256sum); -GUESTFSD_EXT_CMD(str_sha384sum, sha384sum); -GUESTFSD_EXT_CMD(str_sha512sum, sha5...
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’
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.
2016 Mar 07
2
[PATCH v2] Use less stack.
...return -1; @@ -153,7 +164,7 @@ do_checksums_out (const char *csumtype, const char *dir) return -1; } - CLEANUP_FREE char *cmd = NULL; + cmd = NULL; if (asprintf_nowarn (&cmd, "cd %Q && %s -type f -print0 | %s -0 %s", sysrootdir, str_find, str_xargs, program) == -1) { reply_with_perror ("asprintf"); @@ -163,7 +174,7 @@ do_checksums_out (const char *csumtype, const char *dir) if (verbose) fprintf (stderr, "%s\n", cmd); - FILE *fp = popen (cmd, "r"); + fp = popen (cmd, "r"); if (fp ==...