search for: check_hard_link

Displaying 5 results from an estimated 5 matches for "check_hard_link".

2003 Dec 30
3
The dangers of static buffers in rsync code
...ing a single buffer, it has... TEN, and it cycles through them. That's both funny and sad... One obvious problem path is starting from generator.c:generate_files() function. In there we call in a while loop: recv_generator(local_name?local_name:f_name(file),flist,i,f), which calls hlink.c:check_hard_link(), which calls hlink.c:hlink_compare(), which calls flist.c:file_compare(), which calls flist.c:f_name(). Interested parties might want to follow the code, it is easier and more obvious... Anyway, the end result is that in recv_generator() the first argument (fname) is now clob...
2003 Oct 18
0
Added functionality --compare-file and --compare-auto
...oid recv_generator(char *fname, struct file_list *flist, int i, int f_out); void generate_files(int f,struct file_list *flist,char *local_name,int f_recv); +char * findcomparename(const char* fname, char* buf); int main(int argc, char *argv[]); void init_hard_links(struct file_list *flist); int check_hard_link(struct file_struct *file); @@ -224,7 +225,6 @@ OFF_T do_lseek(int fd, OFF_T offset, int whence); void *do_mmap(void *start, int len, int prot, int flags, int fd, OFF_T offset); char *d_name(struct dirent *di); -int main(int argc, char **argv); int main (int argc, char *argv[]); void set_compre...
2004 Feb 09
1
[patch] Add `--link-by-hash' option.
...hfile_struct *hashfiles); +struct hashfile_struct *find_hashfiles(char *hashname, int64 size, long *fnbr); +struct hashfile_struct *compare_hashfiles(int fd,struct hashfile_struct *files); +void link_by_hash(char *fname,struct file_struct *file); void init_hard_links(struct file_list *flist); int check_hard_link(struct file_struct *file); void do_hard_links(void);
2003 Oct 03
2
Cygwin/rsync Hang Problem Testing Results
People of cygwin & rsync, I recently attempted to get cygwin and rsync working to solve a backup/mirroring need in my computer life. Well, as you might guess, I ran into a little but of trouble. Strangely enough, rsync seemed to be regularly hanging when I attempted to do a "get" (sycronize a remote to a local dir). Well, considering I want to automate this, that was not going
2002 Aug 05
5
[patch] read-devices
...+ if (!read_devices && am_root && preserve_devices && IS_DEVICE(file->mode)) { if (statret != 0 || st.st_mode != file->mode || st.st_rdev != file->rdev) { delete_file(fname); @@ -361,15 +363,23 @@ #endif if (preserve_hard_links && check_hard_link(file)) { if (verbose > 1) - rprintf(FINFO, "recv_generator: \"%s\" is a hard link\n",f_name(file)); + rprintf(FINFO, "recv_generator: \"%s\" is a hard link\n",fname); return; } if (!S_ISREG(file->mode)) { - rprintf(FINFO, "skipping...