From 6db1db54883508cd572e24f93e7bee14e286967d Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 11 Apr 2008 22:32:38 -0700 Subject: [PATCH] Fix a file-globbing bug in the daemon when chroot is on. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index a53af8d5..2afb63ec 100644 --- a/util.c +++ b/util.c @@ -582,7 +582,7 @@ static inline void call_glob_match(const char *name, int len, int from_glob, } else use_buf = glob.arg_buf; - if (from_glob || arg) { + if (from_glob || (arg && len)) { STRUCT_STAT st; int is_dir; -- 2.34.1