Source-Changes-HG archive

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

[src/trunk]: src Fix long-term broken pattern match when determining if uname...



details:   https://anonhg.NetBSD.org/src/rev/134aa05c5624
branches:  trunk
changeset: 451848:134aa05c5624
user:      sborrill <sborrill%NetBSD.org@localhost>
date:      Fri Jun 07 15:49:20 2019 +0000

description:
Fix long-term broken pattern match when determining if uname -p output is
valid. [^a-z] syntax isn't valid.

diffstat:

 build.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 1722b42de557 -r 134aa05c5624 build.sh
--- a/build.sh  Fri Jun 07 15:21:48 2019 +0000
+++ b/build.sh  Fri Jun 07 15:49:20 2019 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#      $NetBSD: build.sh,v 1.332 2019/05/02 02:51:01 mrg Exp $
+#      $NetBSD: build.sh,v 1.333 2019/06/07 15:49:20 sborrill Exp $
 #
 # Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -494,7 +494,7 @@
        uname_m=$(uname -m 2>/dev/null)
        uname_p=$(uname -p 2>/dev/null || echo "unknown")
        case "${uname_p}" in
-       ''|unknown|*[^-_A-Za-z0-9]*) uname_p="${uname_m}" ;;
+       ''|unknown|*[!-_A-Za-z0-9]*) uname_p="${uname_m}" ;;
        esac
 
        id_u=$(id -u 2>/dev/null || /usr/xpg4/bin/id -u 2>/dev/null)
@@ -1937,7 +1937,7 @@
        eval cat <<EOF ${makewrapout}
 #! ${HOST_SH}
 # Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from:  \$NetBSD: build.sh,v 1.332 2019/05/02 02:51:01 mrg Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.333 2019/06/07 15:49:20 sborrill Exp $
 # with these arguments: ${_args}
 #
 



Home | Main Index | Thread Index | Old Index