forked from security/hakurei
internal/pkg: do not connect stdin
This introduces external state when verbose. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -281,7 +281,7 @@ func (a *execArtifact) cure(c *CureContext, hostNet bool) (err error) {
|
||||
}
|
||||
z.Uid, z.Gid = (1<<10)-1, (1<<10)-1
|
||||
if a.msg.IsVerbose() {
|
||||
z.Stdin, z.Stdout, z.Stderr = os.Stdin, os.Stdout, os.Stderr
|
||||
z.Stdout, z.Stderr = os.Stdout, os.Stderr
|
||||
}
|
||||
|
||||
z.Dir, z.Env, z.Path, z.Args = a.dir, a.env, a.path, a.args
|
||||
|
||||
Reference in New Issue
Block a user