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

This commit is contained in:
Wayne Davison committed 2008-04-11 22:32:38 -07:00
1 parent 09ad90537d
commit 6db1db5488
1 file changed
+1 -1
+1 -1
View File
@@ -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;