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.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39210 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2010-10-30 16:36:19 +00:00
parent 2b5ef22794
commit 86de478e29
+1 -1
View File
@@ -1207,7 +1207,7 @@ LowLevelCopy(BEntry *srcEntry, StatStruct *srcStat, BDirectory *destDir,
&newLink, loc); &newLink, loc);
BNodeInfo nodeInfo(&newLink); BNodeInfo nodeInfo(&newLink);
ThrowOnError(nodeInfo.SetType(B_LINK_MIMETYPE)); nodeInfo.SetType(B_LINK_MIMETYPE);
newLink.SetPermissions(srcStat->st_mode); newLink.SetPermissions(srcStat->st_mode);
newLink.SetOwner(srcStat->st_uid); newLink.SetOwner(srcStat->st_uid);