From a9a1c6ae9bcc93edf73a28bb42b3865a38f2f0a9 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 23 Oct 2022 00:07:14 -0400 Subject: [PATCH] Data sections can now have rw perms --- analyzer/data-section.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/analyzer/data-section.go b/analyzer/data-section.go index 0071dc4..707ecc1 100644 --- a/analyzer/data-section.go +++ b/analyzer/data-section.go @@ -1,6 +1,5 @@ package analyzer -import "git.tebibyte.media/arf/arf/types" import "git.tebibyte.media/arf/arf/parser" import "git.tebibyte.media/arf/arf/infoerr" @@ -37,16 +36,7 @@ func (analyzer analysisOperation) analyzeDataSection () ( analyzer.addSection(section) inputSection := analyzer.currentSection.(parser.DataSection) - outputSection.location = analyzer.currentSection.Location() - - if inputSection.Permission() == types.PermissionReadWrite { - err = inputSection.NewError ( - "read-write (rw) permission not understood in this " + - "context, try read-only (ro)", - infoerr.ErrorKindError) - return - } - + outputSection.location = analyzer.currentSection.Location() outputSection.permission = inputSection.Permission() // get inherited type