* 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:
@@ -150,7 +150,7 @@ copy_attributes(int fromFd, int toFd)
|
|||||||
while ((dirent = fs_read_attr_dir(attributes)) != NULL) {
|
while ((dirent = fs_read_attr_dir(attributes)) != NULL) {
|
||||||
struct stat stat;
|
struct stat stat;
|
||||||
off_t pos = 0;
|
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;
|
int attrToFD;
|
||||||
|
|
||||||
if (attrFromFD < 0)
|
if (attrFromFD < 0)
|
||||||
@@ -161,7 +161,7 @@ copy_attributes(int fromFd, int toFd)
|
|||||||
continue;
|
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);
|
O_WRONLY | O_TRUNC | O_CREAT);
|
||||||
if (attrToFD < 0) {
|
if (attrToFD < 0) {
|
||||||
close(attrFromFD);
|
close(attrFromFD);
|
||||||
|
|||||||
Reference in New Issue
Block a user