From ed92790ce5832ef5431c1b36840900cb81186f08 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 8 May 2013 04:28:31 +0200 Subject: [PATCH] mime/Database::Install(): Fix subtype without supertype case If the supertype directory for a given subtype didn't exist yet, the method would fail. --- src/kits/storage/mime/Database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/storage/mime/Database.cpp b/src/kits/storage/mime/Database.cpp index fd6bec286a..d9841a142e 100644 --- a/src/kits/storage/mime/Database.cpp +++ b/src/kits/storage/mime/Database.cpp @@ -120,7 +120,7 @@ Database::Install(const char *type) BEntry entry; status_t err = entry.SetTo(fLocation->WritablePathForType(type)); - if (!err) { + if (err == B_OK || err == B_ENTRY_NOT_FOUND) { if (entry.Exists()) err = B_FILE_EXISTS; else {