mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-18 05:19:19 -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
1 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,11 @@ output_stat(){
|
||||||
|
|
||||||
block_newlines file "${file_name}"
|
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
|
declare -a arr
|
||||||
local file_name_from_stat stat_output stat_output_newlined
|
local file_name_from_stat stat_output stat_output_newlined
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue