diff options
author | David Robillard <d@drobilla.net> | 2018-07-10 19:10:06 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-07-10 21:58:32 +0200 |
commit | 5e80e165754064e9942fdf7bd3449a9f4fa047a0 (patch) | |
tree | 6d409f9cc18907e821dafc6a909d1f9d36d657c3 /src | |
parent | cfa27c5274499f9609a9d4c0c224f3d205aa7f4a (diff) | |
download | lilv-5e80e165754064e9942fdf7bd3449a9f4fa047a0.tar.gz lilv-5e80e165754064e9942fdf7bd3449a9f4fa047a0.tar.bz2 lilv-5e80e165754064e9942fdf7bd3449a9f4fa047a0.zip |
Fix saving state when broken links are encountered
Diffstat (limited to 'src')
-rw-r--r-- | src/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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* |