Skip to content

Commit

Permalink
system: whoopsie, opnsense stuff not for non-root shelling :)
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Nov 3, 2018
1 parent 20e87d5 commit bf403ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/inc/auth.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit bf403ca

Please sign in to comment.