mirror of
https://gitee.com/openharmony/kernel_linux
synced 2025-02-25 14:11:58 +00:00

hv_fcopy_daemon fails to overwrite a file if the target file already exits. Add O_TRUNC flag on opening. Signed-off-by: Yue Zhang <yuezha@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>