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 <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
#include "UnpackingDirectory.h"
|
#include "UnpackingDirectory.h"
|
||||||
|
|
||||||
#include "DebugSupport.h"
|
#include "DebugSupport.h"
|
||||||
|
#include "EmptyAttributeDirectoryCookie.h"
|
||||||
#include "UnpackingAttributeCookie.h"
|
#include "UnpackingAttributeCookie.h"
|
||||||
#include "UnpackingAttributeDirectoryCookie.h"
|
#include "UnpackingAttributeDirectoryCookie.h"
|
||||||
#include "Utils.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
|
timespec
|
||||||
RootDirectory::ModifiedTime() const
|
RootDirectory::ModifiedTime() const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -58,6 +58,9 @@ public:
|
|||||||
RootDirectory(ino_t id,
|
RootDirectory(ino_t id,
|
||||||
const timespec& modifiedTime);
|
const timespec& modifiedTime);
|
||||||
|
|
||||||
|
virtual status_t OpenAttributeDirectory(
|
||||||
|
AttributeDirectoryCookie*& _cookie) override;
|
||||||
|
|
||||||
virtual timespec ModifiedTime() const;
|
virtual timespec ModifiedTime() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user