From owner-svn-src-all@freebsd.org Tue Dec 13 01:41:07 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E7DAC74AA5; Tue, 13 Dec 2016 01:41:07 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6B75617DD; Tue, 13 Dec 2016 01:41:07 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBD1f6eh045343; Tue, 13 Dec 2016 01:41:06 GMT (envelope-from dteske@FreeBSD.org) Received: (from dteske@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBD1f6sF045342; Tue, 13 Dec 2016 01:41:06 GMT (envelope-from dteske@FreeBSD.org) Message-Id: <201612130141.uBD1f6sF045342@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dteske set sender to dteske@FreeBSD.org using -f From: Devin Teske Date: Tue, 13 Dec 2016 01:41:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r309966 - head/usr.sbin/bsdinstall/scripts X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2016 01:41:07 -0000 Author: dteske Date: Tue Dec 13 01:41:06 2016 New Revision: 309966 URL: https://svnweb.freebsd.org/changeset/base/309966 Log: The output of dialog needs to be sanitized for portability/compatibility requirements Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig ============================================================================== --- head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 01:39:09 2016 (r309965) +++ head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 01:41:06 2016 (r309966) @@ -126,6 +126,7 @@ dialog_country_select() $regdomains \ 2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD ) + f_dialog_data_sanitize regdomain f_dialog_title "Country selection" prompt="Select your country." @@ -142,6 +143,7 @@ dialog_country_select() $countries \ 2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD ) + f_dialog_data_sanitize country country_set "$regdomain" "$country" } @@ -245,7 +247,9 @@ while :; do $( echo $NETWORKS | tr '\n' ' ' )" \ 2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD ) - case $? in + retval=$? + f_dialog_data_sanitize NETWORK + case $retval in $DIALOG_OK) break ;; $DIALOG_CANCEL) # here we ask if the user wants to select the network manually