From bc01117ce0148ba819ce769ba9f61521e87f5ec9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 3 Apr 2020 18:43:03 +0200 Subject: [PATCH] fix #6158 --- src/util/strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/strings.c b/src/util/strings.c index 8740eab58..e8d411ea5 100644 --- a/src/util/strings.c +++ b/src/util/strings.c @@ -1186,7 +1186,7 @@ GNUNET_STRINGS_check_filename (const char *filename, & (GNUNET_STRINGS_CHECK_EXISTS | GNUNET_STRINGS_CHECK_IS_DIRECTORY | GNUNET_STRINGS_CHECK_IS_LINK))) { - if (0 != stat (filename, &st)) + if (0 != lstat (filename, &st)) { if (0 != (checks & GNUNET_STRINGS_CHECK_EXISTS)) return GNUNET_NO; -- 2.25.1