[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: Avoid unexpected behaviour upon SQL queries that contain '%' anywhere.

Holger Levsen holger at layer-acht.org
Fri Dec 9 16:35:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 7d3d1c16a024b84c3ada760a35a0bfc8c0e24bb4
Author: Daniel Shahaf <danielsh at apache.org>
Date:   Fri Dec 9 16:31:01 2016 +0000

    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 at layer-acht.org>
---
 bin/reproducible_maintenance.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 53172a6..115e79d 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list