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

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=eadd3925c6ed8c2b80da980291c06e917530eded

commit eadd3925c6ed8c2b80da980291c06e917530eded
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Oct 9 23:59:00 2018 +0200

    build: Use a format string with printf in get-version
    
    Warned-by: shellcheck
---
 debian/changelog | 2 ++
 get-version      | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index e6ab78fd8..daea4196f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ dpkg (1.19.3) UNRELEASED; urgency=medium
   * Code internals:
     - dpkg-maintscript-helper: Use an explicit escape instead of a literal
       backslash.
+  * Build system:
+    - get-version: Use a format string with printf.
 
   [ Updated programs translations ]
   * German (Sven Joachim).
diff --git a/get-version b/get-version
index 6bfdcb1ad..3bc3c1bc0 100755
--- a/get-version
+++ b/get-version
@@ -38,4 +38,4 @@ else
 fi
 
 # Use printf to avoid the trailing new line that m4_esyscmd would not handle.
-printf "$version"
+printf "%s" "$version"

-- 
Dpkg.Org's dpkg

Reply via email to