diff options
| author | Wayne Davison <wayned@samba.org> | 2006-12-09 00:24:01 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2006-12-09 00:24:01 +0000 |
| commit | 89d730a098341609988a87c28d6aefea89662e42 (patch) | |
| tree | 0a82c3a5bac8113d7765c79bc3290acaf4341fd6 /main.c | |
| parent | 18979194cfd4b245f6d29064617257dd312ed683 (diff) | |
| download | android_external_rsync-89d730a098341609988a87c28d6aefea89662e42.tar.gz android_external_rsync-89d730a098341609988a87c28d6aefea89662e42.tar.bz2 android_external_rsync-89d730a098341609988a87c28d6aefea89662e42.zip | |
Call the new hard-link init functions.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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) - init_hard_links(); + match_hard_links(); #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; } +#ifdef SUPPORT_HARD_LINKS + if (preserve_hard_links) + init_hard_links(); +#endif + 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; } +#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); |
