Panora200 on IRC reported the error "/bin/bash: bad interpreter:
Permission denied", which we tracked down to the fact that /var/www (or
whatever) was mounted noexec. Prepending '/bin/bash ' to the command
line should fix it. Not heavily tested -- I only checked that
wfShellExec() seemed to work from eval.php for trivial uses.
longer pollutes the parser cache.
* (bug 17031) Correct which characters the parser allows in tag attributes.
* Save 200 useless queries on each category page view
+* Shell commands will now work on Linux in filesystems mounted noexec
=== API changes in 1.17 ===
* (bug 22738) Allow filtering by action type on query=logevent.
if ( $time > 0 && $mem > 0 ) {
$script = "$IP/bin/ulimit4.sh";
if ( is_executable( $script ) ) {
- $cmd = escapeshellarg( $script ) . " $time $mem $filesize " . escapeshellarg( $cmd );
+ $cmd = '/bin/bash ' . escapeshellarg( $script ) . " $time $mem $filesize " . escapeshellarg( $cmd );
}
}
} elseif ( php_uname( 's' ) == 'Windows NT' &&
}
return $wgRepository;
-}
\ No newline at end of file
+}