* 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
This commit is contained in:
Axel Dörfler 2009-07-29 14:53:42 +00:00
parent 0d22b1a78c
commit 4bfd2003b4

View File

@ -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);