mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
system: whoopsie, opnsense stuff not for non-root shelling :)
This commit is contained in:
parent
20e87d5db3
commit
bf403ca01c
@ -364,7 +364,7 @@ function auth_get_shells($uid = 0)
|
||||
foreach ($etc_shells as $shell) {
|
||||
$shell = trim($shell);
|
||||
if (!empty($shell) && strpos($shell, '#') !== 0 &&
|
||||
strpos($shell, '/usr/local/etc/rc') !== 0) {
|
||||
strpos($shell, '/usr/local/sbin/opnsense-') !== 0) {
|
||||
$shells[$shell] = $shell;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user