Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4833d9f4 authored by Tom Zhu's avatar Tom Zhu Committed by San Mehat
Browse files

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: default avatarTom Zhu <ling.zhu@motorola.com>
Signed-off-by: default avatarSan Mehat <san@google.com>
parent 04ea5b97
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment