From 441e7e4bd4ff4041a8e3df0866c5e503c31d5e73 Mon Sep 17 00:00:00 2001 From: "M. Levinson" Date: Tue, 19 Jan 2021 08:49:34 -0500 Subject: [PATCH] config.guess: fix shell variable quoting bug * config.guess (*:NetBSD:*:*): Spell out the full sysctl command twice instead of using a shell variable. * doc/config.guess.1: Regenerate. Fixes: 827c77253b396c07306927b2a4b794a3251c48eb Signed-off-by: Dmitry V. Levin --- config.guess | 7 +++---- doc/config.guess.1 | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config.guess b/config.guess index f772702..3ed3dc7 100755 --- a/config.guess +++ b/config.guess @@ -2,7 +2,7 @@ # Attempt to guess a canonical system name. # Copyright 1992-2021 Free Software Foundation, Inc. -timestamp='2021-01-01' +timestamp='2021-01-19' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -188,10 +188,9 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". - sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=$( (uname -p 2>/dev/null || \ - "/sbin/$sysctl" 2>/dev/null || \ - "/usr/sbin/$sysctl" 2>/dev/null || \ + /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ + /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ echo unknown)) case "$UNAME_MACHINE_ARCH" in aarch64eb) machine=aarch64_be-unknown ;; diff --git a/doc/config.guess.1 b/doc/config.guess.1 index b55189d..0738678 100644 --- a/doc/config.guess.1 +++ b/doc/config.guess.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16. -.TH CONFIG.GUESS "1" "January 2021" "GNU config.guess (2021-01-01)" "User Commands" +.TH CONFIG.GUESS "1" "January 2021" "GNU config.guess (2021-01-19)" "User Commands" .SH NAME config.guess \- guess the build system triplet .SH SYNOPSIS