gnu-arch-users
[Top][All Lists]
Advanced

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

[Gnu-arch-users] [BUG] inventory regex wrong


From: Johannes Berg
Subject: [Gnu-arch-users] [BUG] inventory regex wrong
Date: Thu, 01 Apr 2004 01:43:50 +0200

I've noted this before but figure it probably got lost, so here it is
again, to be noted in the bug tracker. Some regular expressions in
invent.c are wrong, inventory ignores directories named "?arch-ids"
instead of ".arch-ids". Below is the fix:

--- orig/libarch/invent.c
+++ mod/libarch/invent.c
@@ -214,7 +215,7 @@

     case arch_inventory_excludes:
       {
-        return str_save (0, "^(.arch-ids|\\{arch\\}|\\.arch-inventory)$");
+        return str_save (0, "^(\\.arch-ids|\\{arch\\}|\\.arch-inventory)$");
       }
     }
 }
@@ -259,7 +260,7 @@

     case arch_inventory_excludes:
       {
-        return str_save (0, "^(.arch-ids|\\{arch\\}|\\.arch-inventory)$");
+        return str_save (0, "^(\\.arch-ids|\\{arch\\}|\\.arch-inventory)$");
       }
     }
 }
@@ -302,7 +303,7 @@

     case arch_inventory_excludes:
       {
-        return str_save (0, "^(.arch-ids|\\{arch\\})$");
+        return str_save (0, "^(\\.arch-ids|\\{arch\\})$");
       }
     }
 }


I'm not sure about this last one, why doesn't it include .arch-inventory?

johannes
-- 
http://www.sipsolutions.de/
Key-ID: 9AB78CA5 Johannes Martin Berg <address@hidden>

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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