Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Return an error if the path was too long. Pointed o...
details: https://anonhg.NetBSD.org/src/rev/3161f1be79fc
branches: trunk
changeset: 962112:3161f1be79fc
user: christos <christos%NetBSD.org@localhost>
date: Thu Jun 27 17:07:51 2019 +0000
description:
Return an error if the path was too long. Pointed out by maxv
diffstat:
sys/kern/kern_exec.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r cdebe04d09c6 -r 3161f1be79fc sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Thu Jun 27 15:47:10 2019 +0000
+++ b/sys/kern/kern_exec.c Thu Jun 27 17:07:51 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.474 2019/06/26 20:28:59 maxv Exp $ */
+/* $NetBSD: kern_exec.c,v 1.475 2019/06/27 17:07:51 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.474 2019/06/26 20:28:59 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.475 2019/06/27 17:07:51 christos Exp $");
#include "opt_exec.h"
#include "opt_execfmt.h"
@@ -640,7 +640,7 @@
len++;
if (len + 1 >= MAXPATHLEN)
- goto out;
+ goto err;
bp = path + MAXPATHLEN - len;
memmove(bp, path, len);
*(--bp) = '/';
Home |
Main Index |
Thread Index |
Old Index