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

  • From: korli@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 30 Oct 2010 18:36:19 +0200 (CEST)

Author: korli
Date: 2010-10-30 18:36:19 +0200 (Sat, 30 Oct 2010)
New Revision: 39210
Changeset: http://dev.haiku-os.org/changeset/39210

Modified:
   haiku/trunk/src/kits/tracker/FSUtils.cpp
Log:
Don't throw an error when setting filetype on a symlink fails (happens with 
ext2, attributes are readonly), there are no such errors for dirs and files 
anyway.


Modified: haiku/trunk/src/kits/tracker/FSUtils.cpp
===================================================================
--- haiku/trunk/src/kits/tracker/FSUtils.cpp    2010-10-30 16:16:34 UTC (rev 
39209)
+++ haiku/trunk/src/kits/tracker/FSUtils.cpp    2010-10-30 16:36:19 UTC (rev 
39210)
@@ -1207,7 +1207,7 @@
                        &newLink, loc);
 
                BNodeInfo nodeInfo(&newLink);
-               ThrowOnError(nodeInfo.SetType(B_LINK_MIMETYPE));
+               nodeInfo.SetType(B_LINK_MIMETYPE);
 
                newLink.SetPermissions(srcStat->st_mode);
                newLink.SetOwner(srcStat->st_uid);


Other related posts:

  • » [haiku-commits] r39210 - haiku/trunk/src/kits/tracker - korli