Ignore files ending in - in the /etc/ dir e.g /etc/shadow-
This commit is contained in:
parent
b5e32770a3
commit
91ec1b8791
2 changed files with 5 additions and 2 deletions
|
|
@ -102,7 +102,10 @@ class IgnorePolicy:
|
|||
return "log_file"
|
||||
# Ignore editor/backup files that end with a trailing tilde.
|
||||
if path.endswith("~"):
|
||||
return "tilde_backup"
|
||||
return "backup_file"
|
||||
# Ignore backup shadow files
|
||||
if path.startswith("/etc/") and path.endswith("-"):
|
||||
return "backup_file"
|
||||
|
||||
if not self.dangerous:
|
||||
for g in self.deny_globs or []:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue