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:
parent
660e5ca7be
commit
cc0c3a4409
@ -87,9 +87,9 @@ static bool wsfs_server_check_mountpoint(
|
|||||||
{
|
{
|
||||||
struct stat info;
|
struct stat info;
|
||||||
int const rc = stat(config->mount_point, &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));
|
result = (0 == mkdir(config->mount_point, 0755));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user