Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed delete_missing() to not limit the use of DEL_FORCE_RECURSE
[rsync/rsync.git]
/
sender.c
diff --git
a/sender.c
b/sender.c
index
a964e08
..
1cf4365
100644
(file)
--- a/
sender.c
+++ b/
sender.c
@@
-145,6
+145,11
@@
void send_files(struct file_list *flist, int f_out, int f_in)
updating_basis_file = inplace && !make_backups;
file = flist->files[i];
updating_basis_file = inplace && !make_backups;
file = flist->files[i];
+ if (S_ISDIR(file->mode)) {
+ rprintf(FERROR, "[%s] got index of directory: %d\n",
+ who_am_i(), i);
+ exit_cleanup(RERR_PROTOCOL);
+ }
stats.current_file_index = i;
stats.num_transferred_files++;
stats.current_file_index = i;
stats.num_transferred_files++;