mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
fixes adding multiple files to same directory
This commit is contained in:
parent
6f792cc368
commit
a0ae32caa6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user