packagefs: do not use auto-generated attributes for root node
The root node does not come from any package, so it shouldn't have the SYS:PACKAGE_FILE attribute. Remove it from there. Fixes #12453 Change-Id: Icb695bb90644753d4af1c4215c4ad3c2dd9c5e68 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5951 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
3e4b839bbf
commit
5a7756068c
@ -7,6 +7,7 @@
|
||||
#include "UnpackingDirectory.h"
|
||||
|
||||
#include "DebugSupport.h"
|
||||
#include "EmptyAttributeDirectoryCookie.h"
|
||||
#include "UnpackingAttributeCookie.h"
|
||||
#include "UnpackingAttributeDirectoryCookie.h"
|
||||
#include "Utils.h"
|
||||
@ -232,6 +233,19 @@ RootDirectory::RootDirectory(ino_t id, const timespec& modifiedTime)
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
RootDirectory::OpenAttributeDirectory(AttributeDirectoryCookie*& _cookie)
|
||||
{
|
||||
if (HasVFSInitError())
|
||||
return B_ERROR;
|
||||
|
||||
_cookie = new(std::nothrow) EmptyAttributeDirectoryCookie;
|
||||
if (_cookie == nullptr)
|
||||
return B_NO_MEMORY;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
timespec
|
||||
RootDirectory::ModifiedTime() const
|
||||
{
|
||||
|
@ -58,6 +58,9 @@ public:
|
||||
RootDirectory(ino_t id,
|
||||
const timespec& modifiedTime);
|
||||
|
||||
virtual status_t OpenAttributeDirectory(
|
||||
AttributeDirectoryCookie*& _cookie) override;
|
||||
|
||||
virtual timespec ModifiedTime() const;
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user