Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1aefb7e
)
Reject a daemon-excluded destination.
author
Wayne Davison
<wayned@samba.org>
Tue, 18 Mar 2008 16:44:42 +0000
(09:44 -0700)
committer
Wayne Davison
<wayned@samba.org>
Tue, 18 Mar 2008 16:44:42 +0000
(09:44 -0700)
main.c
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
95e5a06
..
8424e90
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-507,6
+507,14
@@
static char *get_local_name(struct file_list *flist, char *dest_path)
if (!dest_path || list_only)
return NULL;
if (!dest_path || list_only)
return NULL;
+ if (server_filter_list.head
+ && (check_filter(&server_filter_list, dest_path, 0 != 0) < 0
+ || check_filter(&server_filter_list, dest_path, 1 != 0) < 0)) {
+ rprintf(FERROR, "skipping daemon-excluded destination \"%s\"\n",
+ dest_path);
+ exit_cleanup(RERR_FILESELECT);
+ }
+
/* See what currently exists at the destination. */
if ((statret = do_stat(dest_path, &st)) == 0) {
/* If the destination is a dir, enter it and use mode 1. */
/* See what currently exists at the destination. */
if ((statret = do_stat(dest_path, &st)) == 0) {
/* If the destination is a dir, enter it and use mode 1. */