util: rename ignore_file() to hidden_file()

hidden_file() is a bit more precise, since dot files usually shouldn't
be ignored, but certainly be considered hidden.
This commit is contained in:
Lennart Poettering
2014-12-19 20:03:36 +01:00
parent 358ba19e5e
commit a34bf9db5d
8 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -704,7 +704,7 @@ static int enumerate_sysv(LookupPaths lp, Hashmap *all_services) {
_cleanup_free_ char *fpath = NULL, *name = NULL;
int r;
if (ignore_file(de->d_name))
if (hidden_file(de->d_name))
continue;
fpath = strjoin(*path, "/", de->d_name, NULL);
@@ -777,7 +777,7 @@ static int set_dependencies_from_rcnd(LookupPaths lp, Hashmap *all_services) {
while ((de = readdir(d))) {
int a, b;
if (ignore_file(de->d_name))
if (hidden_file(de->d_name))
continue;
if (de->d_name[0] != 'S' && de->d_name[0] != 'K')