X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fhexdump.c;h=1b33eeb3acec7a33138cd138d11cb42866649f60;hb=cb9613b993792c1c4b14fa0d9b5001ff644ac2f4;hp=e2d8300e7366b5302f44982c1bf7118f3be58186;hpb=78029b529ad98769685d607230b70f71832d5906;p=libguestfs.git diff --git a/daemon/hexdump.c b/daemon/hexdump.c index e2d8300..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, 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;