generator.ml: use new "Pathname" designation
[libguestfs.git] / daemon / readdir.c
index 45256b2..ab42dfd 100644 (file)
@@ -28,7 +28,7 @@
 #include "actions.h"
 
 guestfs_int_dirent_list *
-do_readdir (char *path)
+do_readdir (const char *path)
 {
   guestfs_int_dirent_list *ret;
   guestfs_int_dirent v;
@@ -36,9 +36,6 @@ do_readdir (char *path)
   struct dirent *d;
   int i;
 
-  NEED_ROOT (return NULL);
-  ABS_PATH (path, return NULL);
-
   ret = malloc (sizeof *ret);
   if (ret == NULL) {
     reply_with_perror ("malloc");