From: Christian Grothoff Date: Fri, 3 Apr 2020 16:43:03 +0000 (+0200) Subject: fix #6158 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bc01117ce0148ba819ce769ba9f61521e87f5ec9;p=oweals%2Fgnunet.git fix #6158 --- 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;