diff --git a/src/add-ons/kernel/file_systems/packagefs/nodes/UnpackingLeafNode.cpp b/src/add-ons/kernel/file_systems/packagefs/nodes/UnpackingLeafNode.cpp index cd8f76b6c3..5810d7cba4 100644 --- a/src/add-ons/kernel/file_systems/packagefs/nodes/UnpackingLeafNode.cpp +++ b/src/add-ons/kernel/file_systems/packagefs/nodes/UnpackingLeafNode.cpp @@ -91,8 +91,11 @@ UnpackingLeafNode::ModifiedTime() const off_t UnpackingLeafNode::FileSize() const { - if (PackageLeafNode* packageNode = _ActivePackageNode()) + if (PackageLeafNode* packageNode = _ActivePackageNode()) { + if (S_ISLNK(packageNode->Mode())) + return strlen(packageNode->SymlinkPath()); return packageNode->FileSize(); + } return 0; }