]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Fix typo in comments
authorSergey Poznyakoff <gray@gnu.org>
Tue, 11 Jul 2023 06:12:47 +0000 (09:12 +0300)
committerSergey Poznyakoff <gray@gnu.org>
Tue, 11 Jul 2023 06:16:15 +0000 (09:16 +0300)
This and the bug fixed by the previous commit were reported by
Benno Schulenberg.

src/names.c

index a3d54c13f5713a28e4514010ff63e0bcb844cf82..d302737977b03dbcd5dddd324eeaf6730cc71a56 100644 (file)
@@ -1279,7 +1279,7 @@ add_starting_file (char const *file_name)
   starting_file_option = true;
 }
 
-/* Find a match for FILE_NAME in the name list.  If EXPECT is true,
+/* Find a match for FILE_NAME in the name list.  If EXACT is true,
    look for exact match (no wildcards). */
 static struct name *
 namelist_match (char const *file_name, bool exact)
@@ -1883,7 +1883,7 @@ collect_and_sort_names (void)
     in structure. The caller will have to do that if it wants to.
     2. If the namelist is empty, it returns null, unlike name_match, which
     returns TRUE.
-    3. If EXPECT is true, it looks for exact matches only (no wildcards). */
+    3. If EXACT is true, it looks for exact matches only (no wildcards). */
 struct name *
 name_scan (const char *file_name, bool exact)
 {