Till Brehm
2014-08-14 65a0b9c10da329a4c9df4f00fb7e26ce04a3c203
Added .cache dir to removed directories list of shell users.
2 files modified
4 ■■■■ changed files
server/plugins-available/shelluser_base_plugin.inc.php 2 ●●● patch | view | raw | blame | history
server/plugins-available/shelluser_jailkit_plugin.inc.php 2 ●●● patch | view | raw | blame | history
server/plugins-available/shelluser_base_plugin.inc.php
@@ -263,7 +263,7 @@
                    $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);
                    }
server/plugins-available/shelluser_jailkit_plugin.inc.php
@@ -541,7 +541,7 @@
                    // 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);
                    }