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:
d2aee17
)
Restored write_ndx_and_attrs() and made it public.
author
Wayne Davison
<wayned@samba.org>
Sat, 2 Dec 2006 16:17:11 +0000
(16:17 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 2 Dec 2006 16:17:11 +0000
(16:17 +0000)
sender.c
patch
|
blob
|
blame
|
history
diff --git
a/sender.c
b/sender.c
index
52aaa9c
..
26cdafa
100644
(file)
--- a/
sender.c
+++ b/
sender.c
@@
-143,6
+143,19
@@
void successful_send(int ndx)
}
}
}
}
+void write_ndx_and_attrs(int f_out, int ndx, int iflags,
+ uchar fnamecmp_type, char *buf, int len)
+{
+ write_int(f_out, ndx);
+ if (protocol_version < 29)
+ return;
+ write_shortint(f_out, iflags);
+ if (iflags & ITEM_BASIS_TYPE_FOLLOWS)
+ write_byte(f_out, fnamecmp_type);
+ if (iflags & ITEM_XNAME_FOLLOWS)
+ write_vstring(f_out, buf, len);
+}
+
void send_files(struct file_list *flist, int f_out, int f_in)
{
int fd = -1;
void send_files(struct file_list *flist, int f_out, int f_in)
{
int fd = -1;