Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern hack around namei problem.
details: https://anonhg.NetBSD.org/src/rev/4de2fe67aaa6
branches: trunk
changeset: 357371:4de2fe67aaa6
user: christos <christos%NetBSD.org@localhost>
date: Tue Nov 07 20:58:23 2017 +0000
description:
hack around namei problem.
diffstat:
sys/kern/kern_exec.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 0b716883a764 -r 4de2fe67aaa6 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Tue Nov 07 19:44:04 2017 +0000
+++ b/sys/kern/kern_exec.c Tue Nov 07 20:58:23 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.450 2017/11/07 19:44:04 christos Exp $ */
+/* $NetBSD: kern_exec.c,v 1.451 2017/11/07 20:58:23 christos Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.450 2017/11/07 19:44:04 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.451 2017/11/07 20:58:23 christos Exp $");
#include "opt_exec.h"
#include "opt_execfmt.h"
@@ -1154,7 +1154,9 @@
if (error != 0)
goto exec_abort;
- pathexec(p, epp->ep_resolvedname);
+ // XXX: Can't use epp->ep_resolvedname since namei can return
+ // a relative path in pnbuf when being passed an absolute path!
+ pathexec(p, data->ed_pathstring);
char * const newstack = STACK_GROW(vm->vm_minsaddr, epp->ep_ssize);
Home |
Main Index |
Thread Index |
Old Index