From 25cf88936f037f45fbf1c146a420756f7d3d8564 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 29 Aug 2000 04:45:49 +0000 Subject: [PATCH] a hack to make listing remote sites (by leaving off a target) more useful --- exclude.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/exclude.c b/exclude.c index a43a84a5..8a1dfe30 100644 --- a/exclude.c +++ b/exclude.c @@ -222,6 +222,12 @@ void send_exclude_list(int f) { int i; extern int remote_version; + extern int list_only, recurse; + + /* this is a complete hack - blame Rusty */ + if (list_only && !recurse) { + add_exclude("/*/*", 0); + } if (!exclude_list) { write_int(f,0); -- 2.34.1