post by tommy @ 27 二月, 2007 10:34
下頭這個 patch, 可以修正這個問題:
--- includes/os/class.Linux.inc.php.orig 2007-02-27 09:27:57.007151010 +0800
+++ includes/os/class.Linux.inc.php 2007-02-27 09:52:24.398870299 +0800
@@ -494,7 +494,7 @@
$fstype[$mpoint] = $type; $fsdev[$dev] = $type; $fsoptions[$mpoint] = $options;
foreach ($mounts as $line2) {
- if (preg_match("#^" . $result[1] . "#", $line2)) {
+ if (preg_match("#^" . $result[1] . " #", $line2)) {
$line2 = preg_replace("#^" . $result[1] . "#", "", $line2);
$ar_buf = preg_split("/(\s+)/", $line2, 6);
$ar_buf[0] = $result[1];
經過這個修正之後, 就不會出現類似的問題了.
2007/03/05:
這個問題在 2.5.2 之後的版本, 因為 parsor 的部份改寫了不少, 已經不會有這個問題了.