FSCreateTrashDirs mustn't create the directories itself. This breaks the logic in FSGetTrashDir that creates/applies attributes if needed. This most likely explains Axel's random problems with trash directories being visible, since this would cause a fresh Haiku install's /boot/trash to never be marked invisible as it should be.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36816 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2888,9 +2888,6 @@ FSCreateTrashDirs()
|
|||||||
if (volume.IsReadOnly() || !volume.IsPersistent())
|
if (volume.IsReadOnly() || !volume.IsPersistent())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
BPath path;
|
|
||||||
find_directory(B_TRASH_DIRECTORY, &path, true, &volume);
|
|
||||||
|
|
||||||
BDirectory trashDir;
|
BDirectory trashDir;
|
||||||
FSGetTrashDir(&trashDir, volume.Device());
|
FSGetTrashDir(&trashDir, volume.Device());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user