X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fdu.c;h=e6df2452bdde7220f2835e93221d25d06e4c320e;hb=9dd53bcb10283295d7fb5f0a3469be2984d99926;hp=735132aef5b09ba1cc9845b41f30a02e2977f71f;hpb=78029b529ad98769685d607230b70f71832d5906;p=libguestfs.git 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) {