From 658b0df49d6e4b9c1137321629862f3d76c8247c Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 31 Jul 2026 09:36:17 +0200 Subject: [PATCH] bee-check.sh.in: Read CONTENT lines with read -r MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without -r, `read` interprets backslashes as escape/continuation characters and strips them, so filenames containing a backslash (e. g. systemd’s `\x2d` escaping) are mangled. `bee check` then looks up the wrong path and wrongly reports the file as missing. Read the CONTENT file lines verbatim with `read -r`, matching the convention already used elsewhere in the tree (`bee-query.sh.in`, `filelist2content.sh.in`). Resolves: https://github.molgen.mpg.de/mariux64/bee/issues/68 Assisted-by: Claude Opus 4.8 --- src/bee-check.sh.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bee-check.sh.in b/src/bee-check.sh.in index d0f9d1c..dcf7f34 100644 --- a/src/bee-check.sh.in +++ b/src/bee-check.sh.in @@ -192,12 +192,12 @@ function do_check_deps() { echo " provides = ${PKGNAME}" echo " provides = ${PKGFULLPKG}" - while read line; do + while read -r line; do eval $(${BEESEP} "${line}") echo " provides = ${file%%//*}" done < "${filesfile}" - while read line; do + while read -r line; do eval $(${BEESEP} "${line}") # save and strip possible symbolic link destination.. @@ -234,7 +234,7 @@ function do_check() { echo "checking ${pkg} .." - while read line ; do + while read -r line ; do eval $(${BEESEP} "${line}") # save and strip possible symbolic link destination..