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:
@@ -120,7 +120,7 @@ Database::Install(const char *type)
|
|||||||
|
|
||||||
BEntry entry;
|
BEntry entry;
|
||||||
status_t err = entry.SetTo(fLocation->WritablePathForType(type));
|
status_t err = entry.SetTo(fLocation->WritablePathForType(type));
|
||||||
if (!err) {
|
if (err == B_OK || err == B_ENTRY_NOT_FOUND) {
|
||||||
if (entry.Exists())
|
if (entry.Exists())
|
||||||
err = B_FILE_EXISTS;
|
err = B_FILE_EXISTS;
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user