Fix is_primary function
authorTomas Mlcoch <tmlcoch@redhat.com>
Mon, 30 Jan 2012 08:27:01 +0000 (09:27 +0100)
committerTomas Mlcoch <tmlcoch@redhat.com>
Mon, 30 Jan 2012 08:27:01 +0000 (09:27 +0100)
misc.c

diff --git a/misc.c b/misc.c
index 77f77dd..01e609f 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -133,6 +133,10 @@ int is_primary(const char *filename)
         return 1;
     }
 
+    if (!strncmp(filename, "/etc/", 5)) {
+        return 1;
+    }
+
     if (!strncmp(filename, "/usr/", 5)) {
         if (!strncmp(filename+5, "bin/", 4)) {
             return 1;