Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern PR/54549: ng0: always initialize execname.
details: https://anonhg.NetBSD.org/src/rev/ba918f9db455
branches: trunk
changeset: 965452:ba918f9db455
user: christos <christos%NetBSD.org@localhost>
date: Mon Sep 16 11:11:34 2019 +0000
description:
PR/54549: ng0: always initialize execname.
diffstat:
sys/kern/exec_elf.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 3b9020a4dcad -r ba918f9db455 sys/kern/exec_elf.c
--- a/sys/kern/exec_elf.c Mon Sep 16 11:03:08 2019 +0000
+++ b/sys/kern/exec_elf.c Mon Sep 16 11:11:34 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf.c,v 1.99 2019/09/15 20:20:26 christos Exp $ */
+/* $NetBSD: exec_elf.c,v 1.100 2019/09/16 11:11:34 christos Exp $ */
/*-
* Copyright (c) 1994, 2000, 2005, 2015 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.99 2019/09/15 20:20:26 christos Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.100 2019/09/16 11:11:34 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_pax.h"
@@ -160,6 +160,7 @@
char *path = l->l_proc->p_path;
int error;
+ execname = NULL;
a = ai;
memset(ai, 0, sizeof(ai));
@@ -233,8 +234,6 @@
}
exec_free_emul_arg(pack);
- } else {
- execname = NULL;
}
a->a_type = AT_NULL;
Home |
Main Index |
Thread Index |
Old Index