From 8490fd28de7e91c9db827becb5f1c50a5df318bb Mon Sep 17 00:00:00 2001 From: anushkagupta200615-jpg Date: Tue, 14 Jul 2026 00:41:42 +0530 Subject: [PATCH] fix: revert file open flags to O_RDWR to align with existing logic Signed-off-by: anushkagupta200615-jpg --- internal/plugin/installer/oci_installer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/plugin/installer/oci_installer.go b/internal/plugin/installer/oci_installer.go index dcbe9a245..a67857a71 100644 --- a/internal/plugin/installer/oci_installer.go +++ b/internal/plugin/installer/oci_installer.go @@ -216,7 +216,7 @@ func extractFile(path string, mode int64, src io.Reader) error { return err } - outFile, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, os.FileMode(mode)) + outFile, err := os.OpenFile(path, os.O_CREATE|os.O_RDWR, os.FileMode(mode)) if err != nil { return err }