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
Call the new hard-link init functions.
[rsync/rsync.git]
/
main.c
diff --git
a/main.c
b/main.c
index
24c7544
..
48bd93d
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-699,7
+699,7
@@
static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
#ifdef SUPPORT_HARD_LINKS
if (preserve_hard_links)
#ifdef SUPPORT_HARD_LINKS
if (preserve_hard_links)
-
init
_hard_links();
+
match
_hard_links();
#endif
if (fd_pair(error_pipe) < 0) {
#endif
if (fd_pair(error_pipe) < 0) {
@@
-831,6
+831,11
@@
static void do_server_recv(int f_in, int f_out, int argc,char *argv[])
filesfrom_fd = -1;
}
filesfrom_fd = -1;
}
+#ifdef SUPPORT_HARD_LINKS
+ if (preserve_hard_links)
+ init_hard_links();
+#endif
+
flist = recv_file_list(f_in);
verbose = save_verbose;
if (!flist) {
flist = recv_file_list(f_in);
verbose = save_verbose;
if (!flist) {
@@
-992,6
+997,11
@@
int client_run(int f_in, int f_out, pid_t pid, int argc, char *argv[])
filesfrom_fd = -1;
}
filesfrom_fd = -1;
}
+#ifdef SUPPORT_HARD_LINKS
+ if (preserve_hard_links)
+ init_hard_links();
+#endif
+
if (write_batch && !am_server)
start_write_batch(f_in);
flist = recv_file_list(f_in);
if (write_batch && !am_server)
start_write_batch(f_in);
flist = recv_file_list(f_in);