From 4f728ffc9c395fffb4508c3617ba13338507a427 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 10 May 2023 11:26:59 +0200 Subject: [PATCH] filelist2content: Accept backslash in filenames Use `read -r` to avoid interpreting backslash when reading the file list. --- src/filelist2content.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filelist2content.sh.in b/src/filelist2content.sh.in index d39ae31..6fe0c78 100644 --- a/src/filelist2content.sh.in +++ b/src/filelist2content.sh.in @@ -64,7 +64,7 @@ function do_f2c() { exit 1 fi - while read filename ; do + while read -r filename ; do data=$(stat --format "$(get_format_string)" "${root}${filename}") if [ "$?" -gt 0 ] ; then