Commit 6db1db54 authored by Wayne Davison's avatar Wayne Davison

Fix a file-globbing bug in the daemon when chroot is on.

parent 09ad9053
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment