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:
4ea4acf
)
- Use write_shortint() to send the 2 bytes in an extended flag.
author
Wayne Davison
<wayned@samba.org>
Fri, 24 Nov 2006 20:21:13 +0000
(20:21 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 24 Nov 2006 20:21:13 +0000
(20:21 +0000)
- Improved a comment.
flist.c
patch
|
blob
|
blame
|
history
diff --git
a/flist.c
b/flist.c
index
5b80f3e
..
06b3d46
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-396,8
+396,7
@@
static void send_file_entry(struct file_struct *file, int f)
flags |= XMIT_TOP_DIR;
if ((flags & 0xFF00) || !flags) {
flags |= XMIT_EXTENDED_FLAGS;
flags |= XMIT_TOP_DIR;
if ((flags & 0xFF00) || !flags) {
flags |= XMIT_EXTENDED_FLAGS;
- write_byte(f, flags);
- write_byte(f, flags >> 8);
+ write_shortint(f, flags);
} else
write_byte(f, flags);
} else {
} else
write_byte(f, flags);
} else {
@@
-794,7
+793,7
@@
struct file_struct *make_file(char *fname, struct file_list *flist,
return NULL;
}
return NULL;
}
- /*
We only care about
directories because we need to avoid recursing
+ /*
-x only affects
directories because we need to avoid recursing
* into a mount-point directory, not to avoid copying a symlinked
* file if -L (or similar) was specified. */
if (one_file_system && st.st_dev != filesystem_dev
* into a mount-point directory, not to avoid copying a symlinked
* file if -L (or similar) was specified. */
if (one_file_system && st.st_dev != filesystem_dev