Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/bin/sh Pull up following revision(s) (requested by kre in...



details:   https://anonhg.NetBSD.org/src/rev/c1cb02315019
branches:  netbsd-8
changeset: 434270:c1cb02315019
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Aug 31 11:43:44 2017 +0000

description:
Pull up following revision(s) (requested by kre in ticket #250):
        bin/sh/var.c: revision 1.67
Fix a bug noticed by Soren Jacobsen running the netbsd-6-0 build.sh which
causes a core dump in some exotic circumstances (when restoring local
variables when a function returns).  ("build.sh makewrapper" exposed it.)
This was introduced in 1.63 - not as part of the substance of that
change (addition) but as an unrelated "must be the right thing to do"
cleanup, which wasn't...

diffstat:

 bin/sh/var.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3830c619c19a -r c1cb02315019 bin/sh/var.c
--- a/bin/sh/var.c      Thu Aug 31 11:41:29 2017 +0000
+++ b/bin/sh/var.c      Thu Aug 31 11:43:44 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.55.2.1 2017/07/23 14:58:14 snj Exp $ */
+/*     $NetBSD: var.c,v 1.55.2.2 2017/08/31 11:43:44 martin Exp $      */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)var.c      8.3 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: var.c,v 1.55.2.1 2017/07/23 14:58:14 snj Exp $");
+__RCSID("$NetBSD: var.c,v 1.55.2.2 2017/08/31 11:43:44 martin Exp $");
 #endif
 #endif /* not lint */
 
@@ -472,7 +472,7 @@
                return;
        }
        vp = ckmalloc(sizeof (*vp));
-       vp->flags = flags & ~(VNOFUNC|VFUNCREF|VSTRFIXED);
+       vp->flags = flags & ~(VNOFUNC|VFUNCREF);
        vp->text = s;
        vp->name_len = nlen;
        vp->next = *vpp;



Home | Main Index | Thread Index | Old Index