summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-10-27 11:15:19 +0000
committerdes <des@FreeBSD.org>2001-10-27 11:15:19 +0000
commitf5a4c275f57e9f019767cbb7315bdf1eb0612c62 (patch)
tree17c20972c13b4a9de6a8d9b1514a15c03f12e59f /sys/i386
parent6f69985e93c752e175036d79097afa859dfd8465 (diff)
downloadFreeBSD-src-f5a4c275f57e9f019767cbb7315bdf1eb0612c62.zip
FreeBSD-src-f5a4c275f57e9f019767cbb7315bdf1eb0612c62.tar.gz
Eliminate the prefix parameter to linux_emul_find(), which was always
linux_emul_path anyway. Linux_emul_find() has interesting bugs in its prefix handling (which luckily are not currently exploitable); this commit is preliminary to an attempt at cleaning it up. Approved by: marcel
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/linux/linux_sysvec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c
index 59ec5e6..70ea5bd 100644
--- a/sys/i386/linux/linux_sysvec.c
+++ b/sys/i386/linux/linux_sysvec.c
@@ -745,13 +745,13 @@ exec_linux_imgact_try(imgp)
if ((error = exec_shell_imgact(imgp)) == 0) {
char *rpath = NULL;
- linux_emul_find(&imgp->proc->p_thread, NULL, linux_emul_path,
+ linux_emul_find(&imgp->proc->p_thread, NULL,
imgp->interpreter_name, &rpath, 0);
if (rpath != imgp->interpreter_name) {
int len = strlen(rpath) + 1;
if (len <= MAXSHELLCMDLEN) {
- memcpy(imgp->interpreter_name, rpath, len);
+ memcpy(imgp->interpreter_name, rpath, len);
}
free(rpath, M_TEMP);
}
OpenPOWER on IntegriCloud