generator.ml: use new "Pathname" designation
[libguestfs.git] / daemon / realpath.c
index c081a45..706af42 100644 (file)
 #include "actions.h"
 
 char *
-do_realpath (char *path)
+do_realpath (const char *path)
 {
   char *ret;
 
-  NEED_ROOT (return NULL);
-  ABS_PATH (path, return NULL);
-
   CHROOT_IN;
   ret = realpath (path, NULL);
   CHROOT_OUT;