diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-03 18:43:03 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-03 18:43:03 +0200 |
commit | bc01117ce0148ba819ce769ba9f61521e87f5ec9 (patch) | |
tree | 184d4939ebc563cef37ccc982ae6bfc74d2f7e64 /src/util/strings.c | |
parent | bc19a75094c026ec7953f7929b47bead78013368 (diff) | |
download | gnunet-bc01117ce0148ba819ce769ba9f61521e87f5ec9.tar.gz gnunet-bc01117ce0148ba819ce769ba9f61521e87f5ec9.zip |
fix #6158
Diffstat (limited to 'src/util/strings.c')
-rw-r--r-- | src/util/strings.c | 2 |
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, | |||
1186 | & (GNUNET_STRINGS_CHECK_EXISTS | GNUNET_STRINGS_CHECK_IS_DIRECTORY | 1186 | & (GNUNET_STRINGS_CHECK_EXISTS | GNUNET_STRINGS_CHECK_IS_DIRECTORY |
1187 | | GNUNET_STRINGS_CHECK_IS_LINK))) | 1187 | | GNUNET_STRINGS_CHECK_IS_LINK))) |
1188 | { | 1188 | { |
1189 | if (0 != stat (filename, &st)) | 1189 | if (0 != lstat (filename, &st)) |
1190 | { | 1190 | { |
1191 | if (0 != (checks & GNUNET_STRINGS_CHECK_EXISTS)) | 1191 | if (0 != (checks & GNUNET_STRINGS_CHECK_EXISTS)) |
1192 | return GNUNET_NO; | 1192 | return GNUNET_NO; |