mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Separate filter from args
This commit is contained in:
@@ -99,8 +99,9 @@ elsif ($in{'view'}) {
|
||||
$tailcmd .= " | tac";
|
||||
}
|
||||
$eflag = $gconfig{'os_type'} =~ /-linux/ ? "-E" : "";
|
||||
$dashflag = $gconfig{'os_type'} =~ /-linux/ ? "--" : "";
|
||||
$got = &proc::safe_process_exec(
|
||||
"$cat | grep -i -a $eflag $filter | $tailcmd",
|
||||
"$cat | grep -i -a $eflag $dashflag $filter | $tailcmd",
|
||||
0, 0, STDOUT, undef, 1, 0, undef, 1);
|
||||
} else {
|
||||
# Not filtering .. so cat the most recent non-empty file
|
||||
|
||||
Reference in New Issue
Block a user