[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-diffutils] bug: diff -r swaps the files it should check

From: Paul Eggert
Subject: Re: [bug-diffutils] bug: diff -r swaps the files it should check
Date: Fri, 27 May 2011 21:24:14 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20110424 Thunderbird/3.1.10

On 05/27/11 15:23, Christoph Anton Mitterer wrote:

> I've seen this issue again now using diff 3.0 from Debian sid (see the
> attached log file output.

Is the problem reproducible?
Can you show how to reproduce the problem?

A quick look at the code did find one problem in this area,
though it may not be your problem.  Does the following patch fix
things for you?

--- a/src/dir.c
+++ b/src/dir.c
@@ -161,9 +161,7 @@ compare_names (char const *name1, char const *name2)
       return r;
-  return (ignore_file_name_case
-         ? strcasecmp (name1, name2)
-         : file_name_cmp (name1, name2));
+  return file_name_cmp (name1, name2);
 /* Compare names FILE1 and FILE2 when sorting a directory.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]