generator.ml: use new "Pathname" designation
[libguestfs.git] / daemon / du.c
index f5f083d..e6df245 100644 (file)
 #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 (return -1);
-  ABS_PATH (path, return -1);
-
   /* Make the path relative to /sysroot. */
   buf = sysroot_path (path);
   if (!buf) {