1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00

fix: do not ignore return value of symlink

This commit is contained in:
Falk Werner 2020-03-01 14:39:58 +01:00
parent 1b4034e081
commit 8a40919296

View File

@ -60,8 +60,8 @@ static bool wf_impl_uuid_mountpoint_link_first_subdir(
{
if ((DT_DIR == entry->d_type) && ('.' != entry->d_name[0]))
{
symlink(entry->d_name, link_path);
result = true;
int rc = symlink(entry->d_name, link_path);
result = (0 == rc);
break;
}
@ -114,7 +114,8 @@ wf_impl_uuid_mountpoint_create(
mkdir(data->full_path, 0755);
data->default_path = wf_create_string("%s/%s/default", root_path, filesystem);
symlink(data->id, data->default_path);
int rc = symlink(data->id, data->default_path);
(void) rc; // ignore missing symlink
struct wf_mountpoint * mountpoint = wf_impl_mountpoint_create(data->full_path);
wf_impl_mountpoint_set_userdata(mountpoint, data, &wf_impl_uuid_mountpoint_data_dispose);