X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fglob.c;h=4fe76f3f051a80e15091bc418d1db30c74d2ddde;hb=9c5f05ec14655195fc94dc7c72d132087abe634b;hp=f15d5e506c45d59ca5fce7b32917a3984eb00bfc;hpb=a7b73d4a1e09f12b2002083618056f0c823c1dcf;p=libguestfs.git diff --git a/daemon/glob.c b/daemon/glob.c index f15d5e5..4fe76f3 100644 --- a/daemon/glob.c +++ b/daemon/glob.c @@ -26,14 +26,11 @@ #include "actions.h" char ** -do_glob_expand (char *pattern) +do_glob_expand (const char *pattern) { int r; glob_t buf; - NEED_ROOT (NULL); - ABS_PATH (pattern, NULL); /* Required so chroot can be used. */ - /* glob(3) in glibc never calls chdir, so this seems to be safe: */ CHROOT_IN; r = glob (pattern, GLOB_MARK|GLOB_BRACE, NULL, &buf);