cp_file(): add O_TRUNK when opening destination file

Reference: vzctl@788587
Reported-by: Igor Sukhih <igor@openvz.org>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed