Output a message when we skip a server-excluded file.
authorWayne Davison <wayned@samba.org>
Tue, 18 May 2004 08:50:17 +0000 (08:50 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 18 May 2004 08:50:17 +0000 (08:50 +0000)
generator.c

index d8e80e0..8053348 100644 (file)
@@ -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;
        }