From ba569623fcb7b32bb8fc64dadc842672befd6819 Mon Sep 17 00:00:00 2001 From: Karel Bilek Date: Tue, 27 Feb 2024 13:07:29 +0100 Subject: [PATCH] sysfs: fix compile-time check on osFile (#2100) Signed-off-by: Karel Bilek --- internal/sysfs/osfile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/sysfs/osfile.go b/internal/sysfs/osfile.go index a28ee6bb..490f0fa6 100644 --- a/internal/sysfs/osfile.go +++ b/internal/sysfs/osfile.go @@ -92,7 +92,7 @@ func (f *osFile) SetAppend(enable bool) (errno experimentalsys.Errno) { } // compile-time check to ensure osFile.reopen implements reopenFile. -var _ reopenFile = (*fsFile)(nil).reopen +var _ reopenFile = (*osFile)(nil).reopen func (f *osFile) reopen() (errno experimentalsys.Errno) { // Clear any create flag, as we are re-opening, not re-creating.