]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(record_dest): Fix test for whether to free `ent'.
authorJim Meyering <jim@meyering.net>
Sat, 6 Oct 2001 17:07:15 +0000 (17:07 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 6 Oct 2001 17:07:15 +0000 (17:07 +0000)
Thank heavens for regression tests.

src/copy.c

index c9d3825676ec1cfe0cff31a68fe94344ca4ce89b..04929693b7ced48d2caac4cc401301d1be831022 100644 (file)
@@ -681,7 +681,7 @@ record_dest (char const *dest, struct stat const *dest_stats)
        xalloc_die ();
       }
 
-    if (ent_from_table == ent)
+    if (ent_from_table != ent)
       {
        /* There was alread a matching entry in the table, so ENT was
           not inserted.  Free it.  */