Skip to content

Commit

Permalink
permission denied fix
Browse files Browse the repository at this point in the history
  • Loading branch information
namiltd committed Jan 12, 2023
1 parent a62d636 commit cb00998
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/class.Parser.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ public static function df($df_param = "", $get_inodes = true)
}
}
}
if (CommonFunctions::executeProgram('df', '-k '.$df_param, $df, PSI_DEBUG) && ($df!=="")) {
$df = "";
CommonFunctions::executeProgram('df', '-k '.$df_param, $df, PSI_DEBUG);
if ($df!=="") {
$df = preg_split("/\n/", $df, -1, PREG_SPLIT_NO_EMPTY);
if ($get_inodes && PSI_SHOW_INODES) {
if (CommonFunctions::executeProgram('df', '-i '.$df_param, $df2, PSI_DEBUG)) {
Expand Down

0 comments on commit cb00998

Please sign in to comment.