From: Wayne Davison Date: Tue, 18 May 2004 08:50:17 +0000 (+0000) Subject: Output a message when we skip a server-excluded file. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/3e35c34b6b496763799153bff6d4b082628752a1?hp=03a9ca0a976f6aca61af1a3b7630e7026d1444ad Output a message when we skip a server-excluded file. --- diff --git a/generator.c b/generator.c index d8e80e01..80533484 100644 --- a/generator.c +++ b/generator.c @@ -285,14 +285,20 @@ void recv_generator(char *fname, struct file_struct *file, int i, int f_out) if (server_exclude_list.head && check_exclude(&server_exclude_list, fname, - S_ISDIR(file->mode)) < 0) + S_ISDIR(file->mode)) < 0) { + if (verbose) { + rprintf(FINFO, "skipping server-excluded file \"%s\"\n", + fname); + } return; + } statret = link_stat(fname,&st); if (only_existing && statret == -1 && errno == ENOENT) { /* we only want to update existing files */ - if (verbose > 1) rprintf(FINFO, "not creating new file \"%s\"\n",fname); + if (verbose > 1) + rprintf(FINFO, "not creating new file \"%s\"\n", fname); return; }