diff options
Diffstat (limited to 'daemon/glob.c')
-rw-r--r-- | daemon/glob.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/daemon/glob.c b/daemon/glob.c index 40b7c50e..4fe76f3f 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 (return NULL); - ABS_PATH (pattern, return 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); |