commit | 4833d9f4986d6dafacff841beb3bf93172c84bdc | [log] [tgz] |
---|---|---|
author | Tom Zhu <ling.zhu@motorola.com> | Mon Sep 28 19:53:12 2009 -0500 |
committer | San Mehat <san@google.com> | Wed Sep 30 14:15:49 2009 -0700 |
tree | df5438a49fdd55c2b9075b8e671ecf42f2062698 | |
parent | 04ea5b974d12753d9ceae280fea0037cae1ba192 [diff] |
init: builtins: trancate target file in do_copy add O_TRUNC flag in open(), which will truncate the target file, otherwise, copy will keep the old content of the target file. Signed-off-by: Tom Zhu <ling.zhu@motorola.com> Signed-off-by: San Mehat <san@google.com>