summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-03 18:43:03 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-03 18:43:03 +0200
commitbc01117ce0148ba819ce769ba9f61521e87f5ec9 (patch)
tree184d4939ebc563cef37ccc982ae6bfc74d2f7e64 /src/util
parentbc19a75094c026ec7953f7929b47bead78013368 (diff)
fix #6158
Diffstat (limited to 'src/util')
-rw-r--r--src/util/strings.c2
1 files changed, 1 insertions, 1 deletions
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;