New API: Add aug-clear call for clearing an Augeas node.
[libguestfs.git] / daemon / hexdump.c
index e2d8300..1b33eeb 100644 (file)
 #include "actions.h"
 
 char *
-do_hexdump (char *path)
+do_hexdump (const char *path)
 {
   char *buf;
   int r;
   char *out, *err;
 
-  NEED_ROOT (NULL);
-  ABS_PATH (path, NULL);
-
   buf = sysroot_path (path);
   if (!buf) {
     reply_with_perror ("malloc");
@@ -44,7 +41,7 @@ do_hexdump (char *path)
   r = command (&out, &err, "hexdump", "-C", buf, NULL);
   free (buf);
   if (r == -1) {
-    reply_with_error ("hexdump: %s: %s", path, err);
+    reply_with_error ("%s: %s", path, err);
     free (err);
     free (out);
     return NULL;