From 49bfc8774bf900fb2239a9b70b951aedccbfed5a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 2 Feb 2017 00:06:18 +0100 Subject: fs-util: unify code we use to check if dirent's d_name is "." or ".." We use different idioms at different places. Let's replace this is the one true new idiom, that is even a bit faster... --- src/basic/path-util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/basic/path-util.h') diff --git a/src/basic/path-util.h b/src/basic/path-util.h index 349cdac7d6..35aef3adc8 100644 --- a/src/basic/path-util.h +++ b/src/basic/path-util.h @@ -141,3 +141,5 @@ bool is_device_path(const char *path); bool is_deviceallow_pattern(const char *path); int systemd_installation_has_version(const char *root, unsigned minimal_version); + +bool dot_or_dot_dot(const char *path); -- cgit v1.2.3-54-g00ecf