search for: findcomparenam

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

Did you mean: findcomparename
2003 Oct 18
0
Added functionality --compare-file and --compare-auto
...+extern char *compare_file; +extern int compare_auto; extern int link_dest; @@ -357,29 +360,36 @@ fnamecmp = fname; - if ((statret == -1) && (compare_dest != NULL)) { - /* try the file at compare_dest instead */ + if ((statret == -1) && compare_auto) { + compare_file = findcomparename(fname,fnamecmpbuf); + } else if ((statret == -1) && (compare_dest != NULL)) { + snprintf(fnamecmpbuf,MAXPATHLEN,"%s/%s", + compare_dest,fname); + compare_file = fnamecmpbuf; + } + + if ((statret == -1) && (compare_file != NULL)) { + /*try this file instead (--compa...