X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fhexdump.c;h=1b33eeb3acec7a33138cd138d11cb42866649f60;hp=27ea108d099724d0c096de33f684875f9375cf8b;hb=66477d07e37ffe66cd6fea1105dd92b616d3cd27;hpb=0dd6c8c8442d4ff588f6dac2efab24d3409b0dec diff --git a/daemon/hexdump.c b/daemon/hexdump.c index 27ea108..1b33eeb 100644 --- a/daemon/hexdump.c +++ b/daemon/hexdump.c @@ -26,15 +26,12 @@ #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, return 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;