X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fdu.c;h=e6df2452bdde7220f2835e93221d25d06e4c320e;hp=7d9c663d000051d80f6ed2ca7da2ee99eb041a86;hb=6c97a65ce768b357a1481cde0533d4cf0b8b931c;hpb=0dd6c8c8442d4ff588f6dac2efab24d3409b0dec diff --git a/daemon/du.c b/daemon/du.c index 7d9c663..e6df245 100644 --- a/daemon/du.c +++ b/daemon/du.c @@ -29,16 +29,13 @@ #include "actions.h" int64_t -do_du (char *path) +do_du (const char *path) { int r; int64_t rv; char *out, *err; char *buf; - NEED_ROOT (-1); - ABS_PATH (path, return -1); - /* Make the path relative to /sysroot. */ buf = sysroot_path (path); if (!buf) {