git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prepare for version 1.0.86.
[libguestfs.git]
/
daemon
/
hexdump.c
diff --git
a/daemon/hexdump.c
b/daemon/hexdump.c
index
faf3dc5
..
1b33eeb
100644
(file)
--- a/
daemon/hexdump.c
+++ b/
daemon/hexdump.c
@@
-26,15
+26,12
@@
#include "actions.h"
char *
#include "actions.h"
char *
-do_hexdump (char *path)
+do_hexdump (c
onst c
har *path)
{
char *buf;
int r;
char *out, *err;
{
char *buf;
int r;
char *out, *err;
- NEED_ROOT (return NULL);
- ABS_PATH (path, return NULL);
-
buf = sysroot_path (path);
if (!buf) {
reply_with_perror ("malloc");
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) {
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;
free (err);
free (out);
return NULL;