mime/Database::Install(): Fix subtype without supertype case

If the supertype directory for a given subtype didn't exist yet, the
method would fail.
This commit is contained in:
Ingo Weinhold 2013-05-08 04:28:31 +02:00
parent dcb2158862
commit ed92790ce5
1 changed files with 1 additions and 1 deletions

View File

@ -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 {