Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Dec 2016 21:01:20 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r309942 - head/usr.sbin/bsdinstall/scripts
Message-ID:  <201612122101.uBCL1KTB029555@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Mon Dec 12 21:01:20 2016
New Revision: 309942
URL: https://svnweb.freebsd.org/changeset/base/309942

Log:
  Allow the script path to contain whitespace and special characters

Modified:
  head/usr.sbin/bsdinstall/scripts/wlanconfig

Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/wlanconfig	Mon Dec 12 21:00:09 2016	(r309941)
+++ head/usr.sbin/bsdinstall/scripts/wlanconfig	Mon Dec 12 21:01:20 2016	(r309942)
@@ -286,7 +286,7 @@ if echo $ENCRYPTION | grep -q 'PSK'; the
 		"SSID" 1 0 "$NETWORK" 1 12 0 0 2 \
 		"Password" 2 0 "" 2 12 15 63 1 \
 		2>&1 1>&3
-	) || exec $0 $@
+	) || exec "$0" $@
 	exec 3>&-
 	awk 'sub(/^\t/,"")||1' \
 		>> "$BSDINSTALL_TMPETC/wpa_supplicant.conf" <<-EOF
@@ -308,7 +308,7 @@ elif echo $ENCRYPTION | grep -q EAP; the
 		"Username" 2 0 "" 2 12 25 63 0 \
 		"Password" 3 0 "" 3 12 25 63 1 \
 		2>&1 1>&3
-	) || exec $0 $@
+	) || exec "$0" $@
 	exec 3>&-
 	awk 'sub(/^\t/,"")||1' \
 		>> "$BSDINSTALL_TMPETC/wpa_supplicant.conf" <<-EOF
@@ -337,7 +337,7 @@ elif echo $ENCRYPTION | grep -q WEP; the
 		"SSID" 1 0 "$NETWORK" 1 12 0 0 2 \
 		"WEP Key 0" 2 0 "" 2 12 15 0 1 \
 		2>&1 1>&3
-	) || exec $0 $@
+	) || exec "$0" $@
 	awk 'sub(/^\t/,"")||1' \
 		>> "$BSDINSTALL_TMPETC/wpa_supplicant.conf" <<-EOF
 	network={



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612122101.uBCL1KTB029555>