Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern update comment about the sense of placement of NDIN...
details: https://anonhg.NetBSD.org/src/rev/617694477acd
branches: trunk
changeset: 500181:617694477acd
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Thu Dec 07 16:14:35 2000 +0000
description:
update comment about the sense of placement of NDINIT()
diffstat:
sys/kern/kern_exec.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 97194979791d -r 617694477acd sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Thu Dec 07 14:13:43 2000 +0000
+++ b/sys/kern/kern_exec.c Thu Dec 07 16:14:35 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.128 2000/12/01 19:41:49 jdolecek Exp $ */
+/* $NetBSD: kern_exec.c,v 1.129 2000/12/07 16:14:35 jdolecek Exp $ */
/*-
* Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou
@@ -270,8 +270,13 @@
exec_maxhdrsz = execsw[i].es_hdrsz;
}
- /* init the namei data to point the file user's program name */
- /* XXX cgd 960926: why do this here? most will be clobbered. */
+ /*
+ * Init the namei data to point the file user's program name.
+ * This is done here rather than in check_exec(), so that it's
+ * possible to override this settings if any of makecmd/probe
+ * functions call check_exec() recursively - for example,
+ * see exec_script_makecmds().
+ */
NDINIT(&nid, LOOKUP, NOFOLLOW, UIO_USERSPACE, SCARG(uap, path), p);
/*
Home |
Main Index |
Thread Index |
Old Index