mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
Skip file names starting with '--',
because this would be interpreted by dpkg-statoverride as an option.
This commit is contained in:
parent
82d401a7de
commit
ee037c01a1
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user