mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-13 17:29:47 +07:00
Skip file names starting with '--',
because this would be interpreted by dpkg-statoverride as an option.
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user