pacman/scripts/libmakepkg/lint_pkgbuild
Eli Schwartz b93dfa935f scripts: protect against unintended glob matching in [[ ]] RHS
The right-hand side of the [[ ... = ... ]] keyword is an exception to
the general rule that quoting is unnecessary with [[

This is usually not a problem, e.g. in libmakepkg, lint_one_pkgname will
already fail if pkgname has an asterisk, but it certainly doesn't hurt
to be "more proper" and go with the spec; it is more dangerous in
repo-add, which can get caught in an infinite loop instead of safely
asserting there is no package named 'foo*'.

Reported-by: Rafael Ascensão <rafa.almas@gmail.com>
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2019-05-08 12:45:26 +10:00
..
arch.sh.in libmakepkg: disallow using 'any' with other arches 2019-01-16 11:23:17 +10:00
arch_specific.sh.in libmakepkg: lint disallowed architecture specific variables 2019-01-31 15:03:28 +10:00
backup.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
changelog.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
checkdepends.sh.in scripts: protect against unintended glob matching in [[ ]] RHS 2019-05-08 12:45:26 +10:00
conflicts.sh.in scripts: protect against unintended glob matching in [[ ]] RHS 2019-05-08 12:45:26 +10:00
depends.sh.in scripts: protect against unintended glob matching in [[ ]] RHS 2019-05-08 12:45:26 +10:00
epoch.sh.in makepkg: Better error messages for versions in (check, make, opt)depends/provides/conflicts 2019-01-10 17:00:03 +10:00
fullpkgver.sh.in makepkg: Better error messages for versions in (check, make, opt)depends/provides/conflicts 2019-01-10 17:00:03 +10:00
install.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
makedepends.sh.in scripts: protect against unintended glob matching in [[ ]] RHS 2019-05-08 12:45:26 +10:00
meson.build libmakepkg: lint disallowed architecture specific variables 2019-01-31 15:03:28 +10:00
optdepends.sh.in scripts: protect against unintended glob matching in [[ ]] RHS 2019-05-08 12:45:26 +10:00
options.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
package_function.sh.in makepkg: reject PKGBUILDs with both split and non-split package functions 2018-09-19 11:10:04 +10:00
package_function_variable.sh.in libmakepkg: lint disallowed variables in package() 2019-01-31 15:03:25 +10:00
pkgbase.sh.in libmakepkg/lint_pkgbuild: lint depends/etc. as if they are pkgname 2018-04-29 21:49:05 +10:00
pkglist.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
pkgname.sh.in libmakepkg/lint_pkgbuild: squelch syntax error when a pkgname is empty 2018-06-18 13:15:51 +10:00
pkgrel.sh.in makepkg: check_pkgrel: Don't say "decimal" in the error message 2019-01-10 17:00:05 +10:00
pkgver.sh.in makepkg: lint_pkgver: Run even if PKGVERFUNC 2018-09-19 18:01:23 +10:00
provides.sh.in scripts: protect against unintended glob matching in [[ ]] RHS 2019-05-08 12:45:26 +10:00
source.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
util.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
variable.sh.in libmakepkg: centralise random arrays of pkgbuild variables 2019-01-31 10:02:37 +10:00