1
0
mirror of https://github.com/falk-werner/webfuse synced 2025-06-13 12:54:15 +00:00

fixes server start failure due to existing mountpoint

This commit is contained in:
Falk Werner 2019-03-12 15:35:56 +01:00
parent bbcb974363
commit eeb6720310

View File

@ -87,9 +87,9 @@ static bool wsfs_server_check_mountpoint(
{
struct stat info;
int const rc = stat(config->mount_point, &info);
bool const isDir = ((0 == rc) && (S_ISDIR(info.st_mode)));
result = ((0 == rc) && (S_ISDIR(info.st_mode)));
if (!isDir)
if (!result)
{
result = (0 == mkdir(config->mount_point, 0755));
}