Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Zvonimir
ISPConfig 3
Commits
65a0b9c1
Commit
65a0b9c1
authored
Aug 15, 2014
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added .cache dir to removed directories list of shell users.
parent
36633e70
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
server/plugins-available/shelluser_base_plugin.inc.php
server/plugins-available/shelluser_base_plugin.inc.php
+1
-1
server/plugins-available/shelluser_jailkit_plugin.inc.php
server/plugins-available/shelluser_jailkit_plugin.inc.php
+1
-1
No files found.
server/plugins-available/shelluser_base_plugin.inc.php
View file @
65a0b9c1
...
...
@@ -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
);
}
...
...
server/plugins-available/shelluser_jailkit_plugin.inc.php
View file @
65a0b9c1
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment