From: Wayne Davison Date: Sat, 12 Apr 2008 05:32:38 +0000 (-0700) Subject: Fix a file-globbing bug in the daemon when chroot is on. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/6db1db54883508cd572e24f93e7bee14e286967d?hp=09ad90537ded518be41e2a35da6ee0ce2325eceb Fix a file-globbing bug in the daemon when chroot is on. --- 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;