Skip to content

Commit 65a0b9c

Browse files
author
Till Brehm
committed
Added .cache dir to removed directories list of shell users.
1 parent 36633e7 commit 65a0b9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/plugins-available/shelluser_base_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ function delete($event_name, $data) {
263263
$homedir = $data['old']['dir'];
264264
if(substr($homedir, -1) !== '/') $homedir .= '/';
265265
$files = array('.bash_logout', '.bash_history', '.bashrc', '.profile');
266-
$dirs = array('.ssh');
266+
$dirs = array('.ssh', '.cache');
267267
foreach($files as $delfile) {
268268
if(is_file($homedir . $delfile) && fileowner($homedir . $delfile) == $userid) unlink($homedir . $delfile);
269269
}

server/plugins-available/shelluser_jailkit_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ private function _delete_homedir($homedir,$userid,$parent_domain_id) {
541541
// delete dir
542542
if(substr($homedir, -1) !== '/') $homedir .= '/';
543543
$files = array('.bash_logout', '.bash_history', '.bashrc', '.profile');
544-
$dirs = array('.ssh');
544+
$dirs = array('.ssh', '.cache');
545545
foreach($files as $delfile) {
546546
if(is_file($homedir . $delfile) && fileowner($homedir . $delfile) == $userid) unlink($homedir . $delfile);
547547
}

0 commit comments

Comments
 (0)