From 6b5090f2f600971de934b89524eeca79b9e8f0e7 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 9 May 2009 12:39:33 +0000 Subject: [PATCH] When copying attributes only, it suffices to open the target read-only. Fixes the image build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30677 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/fs_shell/command_cp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/fs_shell/command_cp.cpp b/src/tools/fs_shell/command_cp.cpp index f53b8a41dc..d8981699f8 100644 --- a/src/tools/fs_shell/command_cp.cpp +++ b/src/tools/fs_shell/command_cp.cpp @@ -1356,7 +1356,7 @@ command_cp(int argc, const char* const* argv) // open the target node for attributes only mode NodeDeleter targetDeleter; if (options.attributesOnly) { - error = targetDomain->Open(target, FSSH_O_WRONLY, targetNode); + error = targetDomain->Open(target, FSSH_O_RDONLY, targetNode); if (error != FSSH_B_OK) { fprintf(stderr, "Error: Failed to open target `%s' for writing: " "`%s'\n", target, fssh_strerror(error));