From 2d223b6b674b23ff1844152198d6c62fe52245e1 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Mon, 28 Feb 2022 10:29:03 +0100 Subject: [PATCH] fixed syntax for io.Copy --- internal/pkg/util/copyfile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/util/copyfile.go b/internal/pkg/util/copyfile.go index 0807b509..4ebc07e2 100644 --- a/internal/pkg/util/copyfile.go +++ b/internal/pkg/util/copyfile.go @@ -34,7 +34,7 @@ func CopyFile(src string, dst string) error { } defer dstFD.Close() - bytes, err := io.Copy(srcFD, dstFD) + bytes, err := io.Copy(dstFD, srcFD) if err != nil { wwlog.Printf(wwlog.ERROR, "File copy from %s to %s failed.\n %s\n", src, dst, err) return err