Commit f2fdec22 authored by Jørgen Lind's avatar Jørgen Lind
Browse files

Don't use lstat but stat for File::Exists on posix

The fun reason for finding this is that ssl cert files on arch linux are
symlinks, and the autodetect hack didn't work there.
parent 10f83232
Pipeline #64869 passed with stages
in 25 minutes and 50 seconds
......@@ -182,7 +182,7 @@ public:
bool File::Exists(const std::string& filename)
{
struct stat buf;
return (lstat(filename.c_str(), &buf) == 0) && S_ISREG(buf.st_mode);
return (stat(filename.c_str(), &buf) == 0) && S_ISREG(buf.st_mode);
}
bool File::Open(const std::string& filename, bool isCreate, bool isDestroyExisting, bool isWriteAccess, Error &error)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment