Displaying 1 result from an estimated 1 matches for "open_alternate_base_comparedir".
2005 Jan 05
1
rsync filename heuristics
...N];
> +
> + snprintf(fuzzyname,MAXPATHLEN,"%s/%s", dirname, bestname);
> + if (verbose > 2)
> + rprintf(FINFO,"fuzzy match %s->%s\n",
> + fname, fuzzyname);
> + return do_open_regular(fuzzyname);
> + }
> + return -1;
> +}
> +
> +int open_alternate_base_comparedir(const char *fname)
> +{
> + char fnamebuf[MAXPATHLEN];
> + /* try the file at compare_dest instead */
> + snprintf(fnamebuf,MAXPATHLEN,"%s/%s",compare_dest,fname);
> +
> + /* FIXME: now follows symlinks... */
> + return do_open_regular(fnamebuf);
> +}
> diff -ur...