Skip to content

Commit

Permalink
filelist2content: Do not strip whitespace from filenames
Browse files Browse the repository at this point in the history
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.
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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b091525

Please sign in to comment.