X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Ffind.c;h=2147c57946c7d63768240a93cb712d604189bb34;hb=e82d864e02f7ab36881c6cda2798bb76370ee6c7;hp=40f1b3bce59d990e135f46b88ff83f99b77e4d17;hpb=0f2e9c84e9ff1071260770930068642ecc8ac0d9;p=libguestfs.git diff --git a/daemon/find.c b/daemon/find.c index 40f1b3b..2147c57 100644 --- a/daemon/find.c +++ b/daemon/find.c @@ -48,7 +48,7 @@ input_to_nul (FILE *fp, char *buf, int maxlen) } char ** -do_find (char *dir) +do_find (const char *dir) { struct stat statbuf; int r, len, sysrootdirlen; @@ -59,9 +59,6 @@ do_find (char *dir) char *sysrootdir; char str[PATH_MAX]; - NEED_ROOT (NULL); - ABS_PATH (dir, NULL); - sysrootdir = sysroot_path (dir); if (!sysrootdir) { reply_with_perror ("malloc");