[haiku-bugs] Re: [Haiku] #12298: Running shell commands from an app fails

  • From: "jackburton" <trac@xxxxxxxxxxxx>
  • Date: Wed, 12 Aug 2015 06:24:43 -0000

#12298: Running shell commands from an app fails
-------------------------------------+----------------------------
Reporter: humdinger | Owner: axeld
Type: bug | Status: new
Priority: blocker | Milestone: R1/beta1
Component: Servers/launch_daemon | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------------------+----------------------------

Comment (by jackburton):

Replying to [comment:11 pulkomandy]:

Our redirect script sent them to /dev/null, but without that they would
get to the syslog and serial port output. Where is/was this set?

As for $HOME, you set it with an extra quoting, which is not escaped by
putenv, leading to the problem we see uin Qupzilla. Why not use setenv
instead of putenv?

Yeah, also because putenv() doesn't copy the passed string:
http://pubs.opengroup.org/onlinepubs/009695399/functions/putenv.html
http://www.greenend.org.uk/rjk/tech/putenv.html

--
Ticket URL: <https://dev.haiku-os.org/ticket/12298#comment:12>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: