[haiku-commits] r36816 - haiku/trunk/src/kits/tracker

  • From: anevilyak@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 15 May 2010 04:05:45 +0200 (CEST)

Author: anevilyak
Date: 2010-05-15 04:05:45 +0200 (Sat, 15 May 2010)
New Revision: 36816
Changeset: http://dev.haiku-os.org/changeset/36816/haiku

Modified:
   haiku/trunk/src/kits/tracker/FSUtils.cpp
Log:
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.



Modified: haiku/trunk/src/kits/tracker/FSUtils.cpp
===================================================================
--- haiku/trunk/src/kits/tracker/FSUtils.cpp    2010-05-14 20:25:26 UTC (rev 
36815)
+++ haiku/trunk/src/kits/tracker/FSUtils.cpp    2010-05-15 02:05:45 UTC (rev 
36816)
@@ -2888,9 +2888,6 @@
                if (volume.IsReadOnly() || !volume.IsPersistent())
                        continue;
 
-               BPath path;
-               find_directory(B_TRASH_DIRECTORY, &path, true, &volume);
-
                BDirectory trashDir;
                FSGetTrashDir(&trashDir, volume.Device());
        }


Other related posts: