Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
filelist2content: Do not strip whitespace from filenames
Set IFS to the empty string when reading the filenames to avoid leading
or trailing whitespace to be stripped from the name.

It's not unlikely that other components of bee fail on filenames with
trailing spaces, too, but that is not a reason to keep the bug in this
tool.
  • Loading branch information
donald committed May 10, 2023
1 parent 4f728ff commit b091525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filelist2content.sh.in
Expand Up @@ -64,7 +64,7 @@ function do_f2c() {
exit 1
fi

while read -r filename ; do
while IFS='' read -r filename ; do
data=$(stat --format "$(get_format_string)" "${root}${filename}")

if [ "$?" -gt 0 ] ; then
Expand Down

0 comments on commit b091525

Please sign in to comment.