X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fcmp.c;h=2b7e33b508bfef7d80af37807d001b961ba535d3;hp=30574e2c4f8980f7c81f7a506412db009c657187;hb=fd84feb8229f792e22e3cbfa9bf7e8156947eb2f;hpb=0dd6c8c8442d4ff588f6dac2efab24d3409b0dec diff --git a/daemon/cmp.c b/daemon/cmp.c index 30574e2..2b7e33b 100644 --- a/daemon/cmp.c +++ b/daemon/cmp.c @@ -28,16 +28,12 @@ #include "actions.h" int -do_equal (char *file1, char *file2) +do_equal (const char *file1, const char *file2) { char *file1buf, *file2buf; char *err; int r; - NEED_ROOT (-1); - ABS_PATH (file1, return -1); - ABS_PATH (file2, return -1); - file1buf = sysroot_path (file1); if (file1buf == NULL) { reply_with_perror ("malloc");