]> err.no Git - dpkg/commitdiff
Add complete file path to names, not just the file name.
authorTollef Fog Heen <tfheen@err.no>
Sun, 20 Jul 2008 17:19:41 +0000 (19:19 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sun, 20 Jul 2008 17:19:41 +0000 (19:19 +0200)
src/filters.c

index de72aef02459f1c9a51d8421d3b35d9cdba57400..4e7e31c848a7a7b239aed8e6561eaf1fd034d888 100644 (file)
@@ -120,7 +120,7 @@ loadfilters(void)
                if (stat(file, &statbuf) != 0)
                        ohshite(_("error stating file '%s'"), file);
                if (S_ISREG(statbuf.st_mode)) {
-                       names[i++] = m_strdup(dent->d_name);
+                       names[i++] = m_strdup(file);
                        if (i == names_len) {
                                names_len *= 2;
                                names = m_realloc(names,