diff options
author | Aaron Lindsay <aaron@aclindsay.com> | 2013-09-05 14:46:29 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-09-18 14:28:03 +1000 |
commit | 3f99cfba1b6ef1c5665488b651a3d6409730fa98 (patch) | |
tree | 453c75070ae7b3b2a4b095bdc50c340819084aa6 /contrib/updpkgsums.sh.in | |
parent | 93888089643b017390538d1f6f3a2d2aa9918851 (diff) | |
download | pacman-3f99cfba1b6ef1c5665488b651a3d6409730fa98.tar.xz |
contrib: Unify quoting in error messages
This fixes error messages to display the contents of variables rather
than the variable name by replacing backticks with single quotes (m4
eats backticks). It also removes $"" localization from error messages to
eliminate security holes.
For instance, `rankmirrors nonexistent_file' will now display:
'nonexistent_file' does not exist.
rather than:
$1 does not exist.
Signed-off-by: Aaron Lindsay <aaron@aclindsay.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'contrib/updpkgsums.sh.in')
-rw-r--r-- | contrib/updpkgsums.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/updpkgsums.sh.in b/contrib/updpkgsums.sh.in index ffea96b6..4d35357f 100644 --- a/contrib/updpkgsums.sh.in +++ b/contrib/updpkgsums.sh.in @@ -67,7 +67,7 @@ fi # Check $PWD/ for permission to unlink the $buildfile and write a new one if [[ ! -w . ]]; then - printf $'==> ERROR: No write permission in `%s\'\n' "$PWD" + printf "==> ERROR: No write permission in '%s'\n" "$PWD" exit 1 fi |