Skip file names starting with '--',

because this would be interpreted by dpkg-statoverride as an option.
This commit is contained in:
Patrick Schleizer 2024-07-26 08:58:44 -04:00
parent 82d401a7de
commit ee037c01a1
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -79,6 +79,11 @@ output_stat(){
block_newlines file "${file_name}"
if [[ $file_name == --* ]]; then
log warn "File name starts with '--'. This would be interpreted by dpkg-statoverride as an option. Skipping. file_name: '${file_name}'" >&2
return 1
fi
declare -a arr
local file_name_from_stat stat_output stat_output_newlined