system: whoopsie, opnsense stuff not for non-root shelling :)

This commit is contained in:
Franco Fichtner 2018-11-03 12:49:22 +01:00
parent 20e87d5db3
commit bf403ca01c

View File

@ -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;
}
}