Watch out for missing attribute support when copying attributes and then don't
error out. Fixes an error message for each copied file when copying from a filesystem that doesn't support attributes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43026 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -182,7 +182,7 @@ copy_attributes(int fromFd, int toFd)
|
|||||||
|
|
||||||
DIR *attributes = fs_fopen_attr_dir(fromFd);
|
DIR *attributes = fs_fopen_attr_dir(fromFd);
|
||||||
if (attributes == NULL)
|
if (attributes == NULL)
|
||||||
return -1;
|
return errno == B_UNSUPPORTED ? 0 : -1;
|
||||||
|
|
||||||
while ((dirent = fs_read_attr_dir(attributes)) != NULL) {
|
while ((dirent = fs_read_attr_dir(attributes)) != NULL) {
|
||||||
struct stat stat;
|
struct stat stat;
|
||||||
|
|||||||
Reference in New Issue
Block a user