From fb65478f297e8a6e96cdc602dacdf5e46b540b89 Mon Sep 17 00:00:00 2001 From: sthen Date: Tue, 6 Feb 2018 22:14:52 +0000 Subject: [PATCH] quote http_proxy going to rc.firsttime, avoiding problems if it contains a special character or space (possible with e.g. proxy username/password). noticed by, install.sub shell magic from, and ok halex@ --- distrib/miniroot/install.sub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 8fde24d08ee..cfbdc13ebfd 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sub,v 1.1057 2018/02/05 22:31:40 sthen Exp $ +# $OpenBSD: install.sub,v 1.1058 2018/02/06 22:14:52 sthen Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer @@ -2752,7 +2752,7 @@ finish_up() { # If a proxy was needed to fetch the sets, use it for fw_update and syspatch [[ -n $http_proxy ]] && - echo "export http_proxy=$http_proxy" >>/mnt/etc/rc.firsttime + quote export "http_proxy=$http_proxy" >>/mnt/etc/rc.firsttime # Ensure that fw_update is run on reboot. echo "/usr/sbin/fw_update -v" >>/mnt/etc/rc.firsttime -- 2.20.1