diff options
| author | Wayne Davison <wayned@samba.org> | 2006-11-24 20:21:13 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2006-11-24 20:21:13 +0000 |
| commit | d521e1c2a1980d241b0ca611d71c78d51bf255f5 (patch) | |
| tree | 87c727f26b5580674eb45ee852f78d45c5afeba7 /flist.c | |
| parent | 4ea4acf17ba245e64a0d549e030fa9def99750ea (diff) | |
| download | android_external_rsync-d521e1c2a1980d241b0ca611d71c78d51bf255f5.tar.gz android_external_rsync-d521e1c2a1980d241b0ca611d71c78d51bf255f5.tar.bz2 android_external_rsync-d521e1c2a1980d241b0ca611d71c78d51bf255f5.zip | |
- Use write_shortint() to send the 2 bytes in an extended flag.
- Improved a comment.
Diffstat (limited to 'flist.c')
| -rw-r--r-- | flist.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; - write_byte(f, flags); - write_byte(f, flags >> 8); + write_shortint(f, flags); } else write_byte(f, flags); } else { @@ -794,7 +793,7 @@ struct file_struct *make_file(char *fname, struct file_list *flist, 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 |
