libopkg: specify "/bin/sh" instead of "sh"
authorGlenn Strauss <gstrauss@gluelogic.com>
Thu, 2 Mar 2017 22:53:09 +0000 (17:53 -0500)
committerJo-Philipp Wich <jo@mein.io>
Wed, 15 Mar 2017 00:39:14 +0000 (01:39 +0100)
commit5dc3e3363159939fcfb429a959bc91296541dc09
tree28c99f8af8abe8611bde850ba09ac72176d904d7
parent19070b6c1a9718bf7ceaa61c48f328cabf1d5ca7
libopkg: specify "/bin/sh" instead of "sh"

avoid strange behavior with execvp() when PATH is not set in environment
(in which case confstr(_CS_PATH) should return something reasonable)

reproducable running openwrt 15.05 and 15.05.1 and attempting to install
a software package (e.g. libuuid) via LuCI (prior to openwrt/luci#1048).
(https://github.com/openwrt/luci/pull/1048) libuuid.postinst fails with
status 255 on 15.05 and opkg segfaults in 15.05.1.  This probably merits
further exploration.

Originally reported in https://github.com/openwrt/packages/issues/1922

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
CMakeLists.txt
libopkg/opkg_cmd.c
libopkg/pkg.c