summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2016-12-09 16:31:01 +0000
committerHolger Levsen <holger@layer-acht.org>2016-12-09 17:35:22 +0100
commit7d3d1c16a024b84c3ada760a35a0bfc8c0e24bb4 (patch)
treefa3ea0dbc3ea43354e8d5318bdf948498fd97b97
parent4c6071f363cdf74220a451d2e4dabbc11c2a554a (diff)
downloadjenkins.debian.net-7d3d1c16a024b84c3ada760a35a0bfc8c0e24bb4.tar.xz
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 <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_maintenance.sh2
1 files changed, 1 insertions, 1 deletions
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