Displaying 10 results from an estimated 10 matches for "sysrootdir".
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.
...sum.c b/daemon/checksum.c
index eec45e2..3045948 100644
--- a/daemon/checksum.c
+++ b/daemon/checksum.c
@@ -132,12 +132,23 @@ do_checksums_out (const char *csumtype, const char *dir)
{
struct stat statbuf;
int r;
+ const char *program;
+ CLEANUP_FREE char *str = NULL;
+ CLEANUP_FREE char *sysrootdir = NULL;
+ CLEANUP_FREE char *cmd = NULL;
+ FILE *fp;
- const char *program = program_of_csum (csumtype);
+ str = malloc (GUESTFS_MAX_CHUNK_SIZE);
+ if (str == NULL) {
+ reply_with_perror ("malloc");
+ return -1;
+ }
+
+ program = program_of_csum (csumtype);
if (program =...
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...const char *dir)
}
char *cmd;
- if (asprintf_nowarn (&cmd, "cd %Q && find -type f -print0 | xargs -0 %s",
+ if (asprintf_nowarn (&cmd, "cd %Q && %s -type f -print0 | %s -0 %s",
+ str_find, str_xargs,
sysrootdir, program) == -1) {
reply_with_perror ("asprintf");
free (sysrootdir);
diff --git a/daemon/cmp.c b/daemon/cmp.c
index 0673403..89da3b8 100644
--- a/daemon/cmp.c
+++ b/daemon/cmp.c
@@ -27,6 +27,8 @@
#include "daemon.h"
#include "actions.h"
+GUESTFSD_EXT_CMD...
2012 Aug 30
1
[PATCH] collect list of called external commands
...const char *dir)
}
char *cmd;
- if (asprintf_nowarn (&cmd, "cd %Q && find -type f -print0 | xargs -0 %s",
+ if (asprintf_nowarn (&cmd, "cd %Q && %s -type f -print0 | %s -0 %s",
+ str_find, str_xargs,
sysrootdir, program) == -1) {
reply_with_perror ("asprintf");
free (sysrootdir);
diff --git a/daemon/cmp.c b/daemon/cmp.c
index 0673403..a63b36f 100644
--- a/daemon/cmp.c
+++ b/daemon/cmp.c
@@ -27,6 +27,8 @@
#include "daemon.h"
#include "actions.h"
+GUESTFS_EXT_CMD(...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...ksum type, expecting crc|md5|sha1|sha224|sha256|sha384|sha512");
return NULL;
@@ -166,7 +156,7 @@ do_checksums_out (const char *csumtype, const char *dir)
cmd = NULL;
if (asprintf_nowarn (&cmd, "cd %Q && %s -type f -print0 | %s -0 %s",
- sysrootdir, str_find, str_xargs, program) == -1) {
+ sysrootdir, "find", "xargs", program) == -1) {
reply_with_perror ("asprintf");
return -1;
}
diff --git a/daemon/cmp.c b/daemon/cmp.c
index 61506b6c1..e3c0e3e1a 100644
--- a/daemon/cmp.c
+++ b/...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...ksum type, expecting crc|md5|sha1|sha224|sha256|sha384|sha512");
return NULL;
@@ -166,7 +160,7 @@ do_checksums_out (const char *csumtype, const char *dir)
cmd = NULL;
if (asprintf_nowarn (&cmd, "cd %Q && %s -type f -print0 | %s -0 %s",
- sysrootdir, str_find, str_xargs, program) == -1) {
+ sysrootdir, "find", "xargs", program) == -1) {
reply_with_perror ("asprintf");
return -1;
}
diff --git a/daemon/cmp.c b/daemon/cmp.c
index 61506b6c1..01ca13d47 100644
--- a/daemon/cmp.c
+++ b/...
2009 Aug 12
23
[PATCH 0/23] factor and const-correctness
This started as a simple warning-elimination change.
I'll get back to that series shortly ;-)
It turned into a factorization and constification exercise
during which I got a taste of ocaml. Thanks to Rich Jones
for help with a few snippets in generator.ml.
The overall result is that many previously-manually-maintained
bits from daemon/*.c functions are now hoisted into the automatically-
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’
2012 Mar 13
2
[PATCH 0/2] 'int' to 'size_t' changes
These two patches are probably not completely independent, but
separating them is a lot of work.
With *both* patches applied, all the tests and extra-tests pass.
That's no guarantee however that there isn't a mistake, so I don't
think this patch is a candidate for the 1.16 branch, until it's had a
lot more testing in development.
Rich.