summaryrefslogtreecommitdiffstats
path: root/daemon/glob.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/glob.c')
-rw-r--r--daemon/glob.c5
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);