From 65a0b9c10da329a4c9df4f00fb7e26ce04a3c203 Mon Sep 17 00:00:00 2001 From: Till Brehm Date: Fri, 15 Aug 2014 00:11:11 +0200 Subject: [PATCH] Added .cache dir to removed directories list of shell users. --- server/plugins-available/shelluser_base_plugin.inc.php | 2 +- server/plugins-available/shelluser_jailkit_plugin.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/plugins-available/shelluser_base_plugin.inc.php b/server/plugins-available/shelluser_base_plugin.inc.php index 651ccc997..e19796cfc 100755 --- a/server/plugins-available/shelluser_base_plugin.inc.php +++ b/server/plugins-available/shelluser_base_plugin.inc.php @@ -263,7 +263,7 @@ class shelluser_base_plugin { $homedir = $data['old']['dir']; if(substr($homedir, -1) !== '/') $homedir .= '/'; $files = array('.bash_logout', '.bash_history', '.bashrc', '.profile'); - $dirs = array('.ssh'); + $dirs = array('.ssh', '.cache'); foreach($files as $delfile) { if(is_file($homedir . $delfile) && fileowner($homedir . $delfile) == $userid) unlink($homedir . $delfile); } diff --git a/server/plugins-available/shelluser_jailkit_plugin.inc.php b/server/plugins-available/shelluser_jailkit_plugin.inc.php index a39183579..3c8e2948a 100755 --- a/server/plugins-available/shelluser_jailkit_plugin.inc.php +++ b/server/plugins-available/shelluser_jailkit_plugin.inc.php @@ -541,7 +541,7 @@ class shelluser_jailkit_plugin { // delete dir if(substr($homedir, -1) !== '/') $homedir .= '/'; $files = array('.bash_logout', '.bash_history', '.bashrc', '.profile'); - $dirs = array('.ssh'); + $dirs = array('.ssh', '.cache'); foreach($files as $delfile) { if(is_file($homedir . $delfile) && fileowner($homedir . $delfile) == $userid) unlink($homedir . $delfile); } -- GitLab