Displaying 1 result from an estimated 1 matches for "69d4f37".
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...n -1;
}
- r = command (NULL, &err, "rm", "-rf", buf, NULL);
+ r = command (NULL, &err, str_rm, "-rf", buf, NULL);
free (buf);
/* rm -rf is never supposed to fail. I/O errors perhaps? */
diff --git a/daemon/dmesg.c b/daemon/dmesg.c
index 5e98a18..69d4f37 100644
--- a/daemon/dmesg.c
+++ b/daemon/dmesg.c
@@ -27,13 +27,15 @@
#include "daemon.h"
#include "actions.h"
+GUESTFSD_EXT_CMD(str_dmesg, dmesg);
+
char *
do_dmesg (void)
{
char *out, *err;
int r;
- r = command (&out, &err, "dmesg", NULL);
+ r...