All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fuego] eval considered harmful
@ 2017-04-01  0:38 Bird, Timothy
  2017-04-03  0:07 ` Daniel Sangorrin
  0 siblings, 1 reply; 3+ messages in thread
From: Bird, Timothy @ 2017-04-01  0:38 UTC (permalink / raw)
  To: Daniel Sangorrin, fuego

Daniel,

I noticed an issue with the 'local' transport.  It uses "eval" in ov_transport_cmd().
However, if the command is to change directory (cd), then this changes the
directory in the current shell.  This can wreak havoc on the Fuego script system,
which expects that stuff that happens on the target board does not affect
the shell environment.

I changed this to using a shell invocation: /bin/sh -c "$@".

This is in my 'next' branch.  Let me know if you have any questions.
 -- Tim


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Fuego] eval considered harmful
  2017-04-01  0:38 [Fuego] eval considered harmful Bird, Timothy
@ 2017-04-03  0:07 ` Daniel Sangorrin
  2017-04-03 17:12   ` Bird, Timothy
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Sangorrin @ 2017-04-03  0:07 UTC (permalink / raw)
  To: 'Bird, Timothy', fuego

> -----Original Message-----
> From: Bird, Timothy [mailto:Tim.Bird@sony.com]
> Sent: Saturday, April 01, 2017 9:38 AM
> I noticed an issue with the 'local' transport.  It uses "eval" in ov_transport_cmd().
> However, if the command is to change directory (cd), then this changes the
> directory in the current shell.  This can wreak havoc on the Fuego script system,
> which expects that stuff that happens on the target board does not affect
> the shell environment.
> 
> I changed this to using a shell invocation: /bin/sh -c "$@".
> 
> This is in my 'next' branch.  Let me know if you have any questions.

Thanks for the change.
There was a another eval when extracting DISTRIB. Did you fix it as well?

Thanks,
Daniel




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Fuego] eval considered harmful
  2017-04-03  0:07 ` Daniel Sangorrin
@ 2017-04-03 17:12   ` Bird, Timothy
  0 siblings, 0 replies; 3+ messages in thread
From: Bird, Timothy @ 2017-04-03 17:12 UTC (permalink / raw)
  To: Daniel Sangorrin, fuego



> -----Original Message-----
> From: Daniel Sangorrin on Sunday, April 02, 2017 5:08 PM
> 
> > -----Original Message-----
> > From: Bird, Timothy [mailto:Tim.Bird@sony.com]
> > Sent: Saturday, April 01, 2017 9:38 AM
> > I noticed an issue with the 'local' transport.  It uses "eval" in
> ov_transport_cmd().
> > However, if the command is to change directory (cd), then this changes the
> > directory in the current shell.  This can wreak havoc on the Fuego script
> system,
> > which expects that stuff that happens on the target board does not affect
> > the shell environment.
> >
> > I changed this to using a shell invocation: /bin/sh -c "$@".
> >
> > This is in my 'next' branch.  Let me know if you have any questions.
> 
> Thanks for the change.
> There was a another eval when extracting DISTRIB. Did you fix it as well?

Yes.
 -- Tim

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-03 17:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-01  0:38 [Fuego] eval considered harmful Bird, Timothy
2017-04-03  0:07 ` Daniel Sangorrin
2017-04-03 17:12   ` Bird, Timothy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.