pacman/scripts/libmakepkg
Eli Schwartz a745d97c17 makepkg: protect against unexpected whitespace in filenames
zipman:

read -r protects against those evil manpages whose filenames contain
backslash escapes, (muahahaha?)

IFS= read protects against filenames with:

- leading whitespace (but no one is actually stupid enough to configure
  their MAN_DIRS=() in makepkg.conf with such silly directories, *right*?)

- trailing whitespace (but likewise, no one should be stupid enough to
  write an uncompressed manpage for section '1 ' or something)

Also fix several other cases where we read filenames without protecting
against surrounding whitespace, or without using null-delimited
filenames when we could trivially do so.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2019-10-30 09:47:28 +10:00
..
buildenv Update copyright years 2019-10-23 22:06:54 +10:00
executable Update copyright years 2019-10-23 22:06:54 +10:00
integrity Update copyright years 2019-10-23 22:06:54 +10:00
lint_config Update copyright years 2019-10-23 22:06:54 +10:00
lint_package Update copyright years 2019-10-23 22:06:54 +10:00
lint_pkgbuild Update copyright years 2019-10-23 22:06:54 +10:00
source Update copyright years 2019-10-23 22:06:54 +10:00
tidy makepkg: protect against unexpected whitespace in filenames 2019-10-30 09:47:28 +10:00
util Update copyright years 2019-10-23 22:06:54 +10:00
.gitignore libmakepkg: fix .gitignore to simply ignore all generated .sh files 2017-12-07 15:37:20 +10:00
buildenv.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
executable.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
integrity.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
lint_config.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
lint_package.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
lint_pkgbuild.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
meson.build meson: remove useless mkdir -p 2018-12-12 10:12:41 +10:00
source.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
srcinfo.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
tidy.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
util.sh.in Update copyright years 2019-10-23 22:06:54 +10:00