From 7d3d1c16a024b84c3ada760a35a0bfc8c0e24bb4 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 9 Dec 2016 16:31:01 +0000 Subject: reproducible: Avoid unexpected behaviour upon SQL queries that contain '%' anywhere. (The behaviour of printf(1) may be well-defined on such inputs, but would nonetheless still be undesired.) Signed-off-by: Holger Levsen --- bin/reproducible_maintenance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/reproducible_maintenance.sh') diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 53172a69..115e79de 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -17,7 +17,7 @@ REP_RESULTS=/srv/reproducible-results # query reproducible database, print output query_to_print() { - printf ".width 0 25 \n $@ ; " | sqlite3 -init $INIT -header -column ${PACKAGES_DB} + printf ".width 0 25 \n %s ; " "$1" | sqlite3 -init $INIT -header -column ${PACKAGES_DB} } # backup db -- cgit v1.2.3-70-g09d2