Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern don't print for ENOEXEC
details: https://anonhg.NetBSD.org/src/rev/90432b0f770c
branches: trunk
changeset: 828812:90432b0f770c
user: christos <christos%NetBSD.org@localhost>
date: Fri Jan 05 01:51:36 2018 +0000
description:
don't print for ENOEXEC
diffstat:
sys/kern/kern_exec.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d8cba9011149 -r 90432b0f770c sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Fri Jan 05 01:33:11 2018 +0000
+++ b/sys/kern/kern_exec.c Fri Jan 05 01:51:36 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.453 2017/11/13 22:01:45 christos Exp $ */
+/* $NetBSD: kern_exec.c,v 1.454 2018/01/05 01:51:36 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.453 2017/11/13 22:01:45 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.454 2018/01/05 01:51:36 christos Exp $");
#include "opt_exec.h"
#include "opt_execfmt.h"
@@ -760,7 +760,7 @@
/* see if we can run it. */
if ((error = check_exec(l, epp, data->ed_pathbuf)) != 0) {
- if (error != ENOENT && error != EACCES) {
+ if (error != ENOENT && error != EACCES && error != ENOEXEC) {
DPRINTF(("%s: check exec failed for %s, error %d\n",
__func__, epp->ep_kname, error));
}
Home |
Main Index |
Thread Index |
Old Index