diff --git a/src/add-ons/kernel/file_systems/packagefs/Volume.cpp b/src/add-ons/kernel/file_systems/packagefs/Volume.cpp index 3976723d48..b8d2154b61 100644 --- a/src/add-ons/kernel/file_systems/packagefs/Volume.cpp +++ b/src/add-ons/kernel/file_systems/packagefs/Volume.cpp @@ -30,6 +30,7 @@ #include #include +#include "AttributeIndex.h" #include "DebugSupport.h" #include "kernel_interface.h" #include "LastModifiedIndex.h" @@ -556,6 +557,21 @@ Volume::Mount(const char* parameterString) fIndices.Insert(index); } + // create a BEOS:APP_SIG index + { + AttributeIndex* index = new(std::nothrow) AttributeIndex; + if (index == NULL) + RETURN_ERROR(B_NO_MEMORY); + + error = index->Init(this, "BEOS:APP_SIG", B_MIME_STRING_TYPE, 0); + if (error != B_OK) { + delete index; + RETURN_ERROR(error); + } + + fIndices.Insert(index); + } + // get the mount parameters const char* packages = NULL; const char* volumeName = NULL;