search for: fuzzyname

Displaying 1 result from an estimated 1 matches for "fuzzyname".

2005 Jan 05
1
rsync filename heuristics
...rprintf(FINFO,"fuzzy score for %s = %u\n", > + dname, score); > + if (score > bestscore) { > + strcpy(bestname, dname); > + bestscore = score; > + } > + } > + closedir(d); > + > + /* Found a candidate. */ > + if (bestscore != 0) { > + char fuzzyname[MAXPATHLEN]; > + > + 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; > +} > +...