Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/filemon EJUSTRETURN is expected return from sys_exec...
details: https://anonhg.NetBSD.org/src/rev/4eeb6b0d4bc7
branches: trunk
changeset: 763218:4eeb6b0d4bc7
user: sjg <sjg%NetBSD.org@localhost>
date: Sun Mar 13 21:26:31 2011 +0000
description:
EJUSTRETURN is expected return from sys_execve()
diffstat:
sys/dev/filemon/filemon_wrapper.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 3ac7dd147b50 -r 4eeb6b0d4bc7 sys/dev/filemon/filemon_wrapper.c
--- a/sys/dev/filemon/filemon_wrapper.c Sun Mar 13 21:08:45 2011 +0000
+++ b/sys/dev/filemon/filemon_wrapper.c Sun Mar 13 21:26:31 2011 +0000
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: filemon_wrapper.c,v 1.1 2010/09/09 00:10:16 sjg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: filemon_wrapper.c,v 1.2 2011/03/13 21:26:31 sjg Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -82,7 +82,7 @@
error = copyinstr(SCARG(uap, path), fname, sizeof(fname), &done);
- if ((ret = sys_execve(l, uap, retval)) == 0 && error == 0) {
+ if ((ret = sys_execve(l, uap, retval)) == EJUSTRETURN && error == 0) {
filemon = filemon_lookup(curproc);
if (filemon) {
Home |
Main Index |
Thread Index |
Old Index