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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user