1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 15:17:45 +00:00

pkg: Always use correct installed.db

The access() check was on the wrong file previously.
This commit is contained in:
kleines Filmröllchen 2023-10-04 12:02:47 +02:00 committed by Tim Schumacher
parent feef542c73
commit a5f566c2c6
3 changed files with 5 additions and 3 deletions

View file

@ -11,7 +11,7 @@
ErrorOr<HashMap<String, InstalledPort>> InstalledPort::read_ports_database()
{
auto file = TRY(Core::File::open("/usr/Ports/installed.db"sv, Core::File::OpenMode::Read));
auto file = TRY(Core::File::open(ports_database, Core::File::OpenMode::Read));
auto buffered_file = TRY(Core::InputBufferedFile::create(move(file)));
auto buffer = TRY(ByteBuffer::create_uninitialized(PAGE_SIZE));