diff options
author | 2015-08-29 09:35:47 +1000 | |
---|---|---|
committer | 2015-08-29 09:47:46 +1000 | |
commit | 7415d03df0362a08b4ccf405f8f98147c76e6329 (patch) | |
tree | c8bbe199b0eaa94aa4e9c6b6c883f2a40f1e4b27 /etc | |
parent | more fixes for blacklist on Arch systems (diff) | |
download | firejail-7415d03df0362a08b4ccf405f8f98147c76e6329.tar.gz firejail-7415d03df0362a08b4ccf405f8f98147c76e6329.tar.zst firejail-7415d03df0362a08b4ccf405f8f98147c76e6329.zip |
Rewrite globbing code to fix various minor issues
* Plug a memory leak.
* Remove the short-circuit. (This breaks when someone uses [] or ?
patterns without using *. I figure it's best to use the principle of
least surprise and just let the system glob() implementation do what
it does.)
* Stop sorting results.
I've also replaced a lot of disable-history.inc with a glob pattern.
Now it catches files like .sqlite_history and whatever the user runs
under rlwrap.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/disable-history.inc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/etc/disable-history.inc b/etc/disable-history.inc index 66261c1cf..7a91df828 100644 --- a/etc/disable-history.inc +++ b/etc/disable-history.inc | |||
@@ -1,10 +1,3 @@ | |||
1 | # History files in $HOME | 1 | # History files in $HOME |
2 | blacklist ${HOME}/.history | 2 | blacklist ${HOME}/.history |
3 | blacklist ${HOME}/.bash_history | 3 | blacklist ${HOME}/.*_history |
4 | blacklist ${HOME}/.zsh_history | ||
5 | blacklist ${HOME}/.ksh_history | ||
6 | blacklist ${HOME}/.sh_history | ||
7 | blacklist ${HOME}/.nano_history | ||
8 | blacklist ${HOME}/.python_history | ||
9 | blacklist ${HOME}/.mysql_history | ||
10 | blacklist ${HOME}/.pgsql_history \ No newline at end of file | ||