From 97f9dcae6a08f2ff2d06ace8ee204a52bd5ee960 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 18 May 2004 00:14:10 +0000 Subject: [PATCH] If the server has excluded a file, we now exclude it from being uploaded as well as downloaded. --- generator.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/generator.c b/generator.c index 01cba43c..d8e80e01 100644 --- a/generator.c +++ b/generator.c @@ -52,6 +52,8 @@ extern int only_existing; extern int orig_umask; extern int safe_symlinks; +extern struct exclude_list_struct server_exclude_list; + /* choose whether to skip a particular file */ static int skip_file(char *fname, struct file_struct *file, STRUCT_STAT *st) @@ -281,6 +283,11 @@ void recv_generator(char *fname, struct file_struct *file, int i, int f_out) if (verbose > 2) rprintf(FINFO,"recv_generator(%s,%d)\n",fname,i); + if (server_exclude_list.head + && check_exclude(&server_exclude_list, fname, + S_ISDIR(file->mode)) < 0) + return; + statret = link_stat(fname,&st); if (only_existing && statret == -1 && errno == ENOENT) { -- 2.34.1