diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-19 20:03:36 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-19 20:03:36 +0100 |
commit | a34bf9db5da0fdd6bdb14459e203dbe41ee99614 (patch) | |
tree | fa2d06993130a6cfe463b574e6659159c2e3635f /src/shared/util.h | |
parent | 358ba19e5e18304258f053e30e6120a3b6adf322 (diff) |
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.
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index e783ec6cdb..712f65a957 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -317,7 +317,7 @@ char *ascii_strlower(char *path); bool dirent_is_file(const struct dirent *de) _pure_; bool dirent_is_file_with_suffix(const struct dirent *de, const char *suffix) _pure_; -bool ignore_file(const char *filename) _pure_; +bool hidden_file(const char *filename) _pure_; bool chars_intersect(const char *a, const char *b) _pure_; @@ -771,7 +771,7 @@ int search_and_fopen_nulstr(const char *path, const char *mode, const char *root on_error; \ } \ break; \ - } else if (ignore_file((de)->d_name)) \ + } else if (hidden_file((de)->d_name)) \ continue; \ else |