From: Tomas Mlcoch Date: Mon, 30 Jan 2012 08:27:01 +0000 (+0100) Subject: Fix is_primary function X-Git-Tag: upstream/0.2.1~570 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d291bb32deb045e37c0ea186431eb2e8edc26ce;p=services%2Fcreaterepo_c.git Fix is_primary function --- diff --git a/misc.c b/misc.c index 77f77dd..01e609f 100644 --- 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;