From 4bfd2003b4a8bd8b66d5b60ae9c6d3bbd82cb96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 29 Jul 2009 14:53:42 +0000 Subject: [PATCH] * Forgot to update this one, causing copying attributes to work no longer via cp and mv. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31911 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/coreutils/src/copy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/coreutils/src/copy.c b/src/bin/coreutils/src/copy.c index e3b464c115..1dfda4b3d5 100644 --- a/src/bin/coreutils/src/copy.c +++ b/src/bin/coreutils/src/copy.c @@ -150,7 +150,7 @@ copy_attributes(int fromFd, int toFd) while ((dirent = fs_read_attr_dir(attributes)) != NULL) { struct stat stat; off_t pos = 0; - int attrFromFD = fs_open_attr(fromFd, dirent->d_name, 0, O_RDONLY); + int attrFromFD = fs_fopen_attr(fromFd, dirent->d_name, 0, O_RDONLY); int attrToFD; if (attrFromFD < 0) @@ -161,7 +161,7 @@ copy_attributes(int fromFd, int toFd) continue; } - attrToFD = fs_open_attr(toFd, dirent->d_name, stat.st_type, + attrToFD = fs_fopen_attr(toFd, dirent->d_name, stat.st_type, O_WRONLY | O_TRUNC | O_CREAT); if (attrToFD < 0) { close(attrFromFD);