stop the copy when not everything is written
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18724 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -168,7 +168,7 @@ copy_attributes(int fromFd, int toFd)
|
||||
break;
|
||||
|
||||
bytesWritten = fs_write_attr(toFd, dirent->d_name, info.type, pos, buffer, bytesRead);
|
||||
if (bytesWritten <= 0)
|
||||
if (bytesWritten != bytesRead)
|
||||
break;
|
||||
|
||||
pos += bytesWritten;
|
||||
|
||||
Reference in New Issue
Block a user