X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fdu.c;h=e6df2452bdde7220f2835e93221d25d06e4c320e;hp=735132aef5b09ba1cc9845b41f30a02e2977f71f;hb=d15195bad9e50f4d80e84c39100a217a260fc806;hpb=78029b529ad98769685d607230b70f71832d5906 diff --git a/daemon/du.c b/daemon/du.c index 735132a..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, -1); - /* Make the path relative to /sysroot. */ buf = sysroot_path (path); if (!buf) {