X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=daemon%2Ffind.c;h=2147c57946c7d63768240a93cb712d604189bb34;hb=84fc760439e82e6b3616abd0d1f9bd7d7eb01ec0;hp=950a0fcbc96752c99b5cf9f124ffa885bca24fa3;hpb=79b5084f70cb67c37dd7cbe60821a78981fd8d59;p=libguestfs.git diff --git a/daemon/find.c b/daemon/find.c index 950a0fc..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 (return NULL); - ABS_PATH (dir, return NULL); - sysrootdir = sysroot_path (dir); if (!sysrootdir) { reply_with_perror ("malloc");