From 5e80e165754064e9942fdf7bd3449a9f4fa047a0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 10 Jul 2018 19:10:06 +0200 Subject: Fix saving state when broken links are encountered --- src/util.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/util.c b/src/util.c index 9e791b4..4973181 100644 --- a/src/util.c +++ b/src/util.c @@ -272,7 +272,12 @@ lilv_dirname(const char* path) bool lilv_path_exists(const char* path, void* ignored) { +#ifdef HAVE_LSTAT + struct stat st; + return !lstat(path, &st); +#else return !access(path, F_OK); +#endif } char* -- cgit v1.2.1