summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-07-30 16:09:49 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-07-30 16:09:49 +0000
commit88f320eae0ffa7013b7b4b3eb819378a582876fc (patch)
tree6ea78a870bed510db03580c6ceabe0c3c05caf8b /bin
parent351a833cf228bc8ac9f89a3c71ed8d6f2f1f39ac (diff)
sometimes no-return syscalls (execve) emit errno < 0. ignore them.
Diffstat (limited to 'bin')
-rw-r--r--bin/systrace/intercept.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/systrace/intercept.c b/bin/systrace/intercept.c
index a2d447caebf..5c5de7c4c08 100644
--- a/bin/systrace/intercept.c
+++ b/bin/systrace/intercept.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intercept.c,v 1.19 2002/07/30 03:16:40 provos Exp $ */
+/* $OpenBSD: intercept.c,v 1.20 2002/07/30 16:09:48 itojun Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -660,7 +660,7 @@ intercept_syscall_result(int fd, pid_t pid, u_int16_t seqnr, int policynr,
{
struct intercept_pid *icpid;
- if (result)
+ if (result > 0)
goto out;
icpid = intercept_getpid(pid);