internal/pkg: do not clear execute bit

Only write should be cleared here, clearing execute causes execArtifact to be unable to start anything since no Artifact is able to produce an executable file.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-06 22:31:44 +09:00
parent ce0064384d
commit aa0a949cef

View File

@@ -138,7 +138,7 @@ func (a *tarArtifact) Cure(c *CureContext) (err error) {
if f, err = os.OpenFile( if f, err = os.OpenFile(
p, p,
os.O_CREATE|os.O_EXCL|os.O_WRONLY, os.O_CREATE|os.O_EXCL|os.O_WRONLY,
header.FileInfo().Mode()&0400, header.FileInfo().Mode()&0500,
); err != nil { ); err != nil {
return return
} }