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

fixes adding multiple files to same directory

This commit is contained in:
Falk Werner 2019-05-25 02:07:35 +02:00 committed by Falk Werner
parent 6f792cc368
commit a0ae32caa6

View File

@ -182,8 +182,6 @@ wfp_impl_static_filesystem_add_dir(
char const * name
)
{
size_t result = 0;
struct wfp_static_filesystem_entry * entry = wfp_impl_static_filesystem_get_entry_by_name(filesystem, parent, name);
if (NULL == entry)
{
@ -197,11 +195,9 @@ wfp_impl_static_filesystem_add_dir(
entry->get_info = &wfp_impl_static_filesystem_entry_get_info;
entry->size = 0;
entry->content = NULL;
result = entry->inode;
}
return result;
return entry->inode;
}
static size_t