config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 4db881ef146ec8c701d6ae76410aeada5de2581a
parent 480fb2e1bd773ce49f80f53d455f378dc4eace57
Author: Jacob R. Edwards <n/a>
Date:   Thu,  1 Dec 2022 12:30:55 -0600

Fix netquery being subject to sed replacement processing

The netquery was generated by getting the base query using
netquery_resolve and appending the given arguments using sed's
substitute command. This meant that the query was unable to contain
many characters it should have been able to (namely '&' and '/',
although '/' could've been made to be any other character).

Diffstat:
Mlocal/bin/bin/netquery | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/local/bin/bin/netquery b/local/bin/bin/netquery @@ -29,4 +29,6 @@ case "$1" in esac IFS='+' -netquery_resolve "$name" < "$config" | sed "s/$/$*/" +base="$(netquery_resolve "$name" < "$config")" || + exit 1 +echo "$base/$*"