mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Minor tweak - don't cause a warning.
I don't know if it was intentional or not, but it would have printed out: /compat/linux/foo/bar.so: interpreter not found If it was, then I've broken it. De-constifying the 'interp' variable or carrying the constness through to elf_load_file() are alternatives.
This commit is contained in:
parent
ebce412ca2
commit
c6bb4a64b8
1 changed files with 3 additions and 2 deletions
|
|
@ -26,7 +26,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: imgact_elf.c,v 1.58 1999/05/17 00:53:38 alc Exp $
|
||||
* $Id: imgact_elf.c,v 1.59 1999/07/05 18:38:29 marcel Exp $
|
||||
*/
|
||||
|
||||
#include "opt_rlimit.h"
|
||||
|
|
@ -588,7 +588,8 @@ exec_elf_imgact(struct image_params *imgp)
|
|||
brand_info->emul_path, interp);
|
||||
if ((error = elf_load_file(imgp->proc, path, &addr,
|
||||
&imgp->entry_addr)) != 0) {
|
||||
if ((error = elf_load_file(imgp->proc, interp, &addr,
|
||||
snprintf(path, sizeof(path), "%s", interp);
|
||||
if ((error = elf_load_file(imgp->proc, path, &addr,
|
||||
&imgp->entry_addr)) != 0) {
|
||||
uprintf("ELF interpreter %s not found\n",
|
||||
path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue