From 87d4f28e6f52966e2d271986f7025b11e2bfaf0d Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Mon, 31 Oct 2011 10:20:50 +0000 Subject: [PATCH] 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 --- src/bin/coreutils/src/copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/coreutils/src/copy.c b/src/bin/coreutils/src/copy.c index e20566a460..8a964788c3 100644 --- a/src/bin/coreutils/src/copy.c +++ b/src/bin/coreutils/src/copy.c @@ -182,7 +182,7 @@ copy_attributes(int fromFd, int toFd) DIR *attributes = fs_fopen_attr_dir(fromFd); if (attributes == NULL) - return -1; + return errno == B_UNSUPPORTED ? 0 : -1; while ((dirent = fs_read_attr_dir(attributes)) != NULL) { struct stat stat;