From e80a7654127e03b6bac23c1efc2226129bbc8bfe Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 11 Sep 2003 04:00:19 +0000 Subject: [PATCH] If lp_path() returns "/", set exclude_path_prefix to "" (because the exclude code doesn't want any trailing slashes). --- clientserver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clientserver.c b/clientserver.c index 305f6e61..5c931fa6 100644 --- a/clientserver.c +++ b/clientserver.c @@ -294,6 +294,8 @@ static int rsync_module(int f_in, int f_out, int i) * supplementary groups. */ exclude_path_prefix = use_chroot? "" : lp_path(i); + if (*exclude_path_prefix == '/' && !exclude_path_prefix[1]) + exclude_path_prefix = ""; p = lp_include_from(i); add_exclude_file(&server_exclude_list, p, MISSING_FATAL, ADD_INCLUDE); -- 2.34.1