Package: phpsysinfo
Version: 2.5.1-6
Severity: normal
Tags: patch
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.27.10-wsr
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages phpsysinfo depends on:
ii apache2-mpm-prefork [http 2.2.3-4+etch6 Traditional model for Apache HTTPD
ii debconf [debconf-2.0] 1.5.11etch2Debian configuration management sy
ii debianutils 2.17 Miscellaneous utilities specific t
ii libapache2-mod-php5 5.2.0-8+etch13 server-side, HTML-embedded scripti
ii php5 5.2.0-8+etch13 server-side, HTML-embedded scripti
ii ucf 2.0020 Update Configuration File: preserv
phpsysinfo recommends no packages.
-- debconf information:
* phpsysinfo/bindmounts: true
* phpsysinfo/template: classic
* phpsysinfo/hddtemp: suid
* phpsysinfo/picklist: true
* phpsysinfo/lmsensors: true
* phpsysinfo/language: en
* phpsysinfo/mountpoints: true
* phpsysinfo/loadbar: true
# phpsysinfo shows twice the two tmpfs mounts (4 lines)
# problem is in a regexp, a working patch follows.
# /bin/df -kP
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/sda5 19228276 2145324 16106204 12% /
tmpfs 4152484 0 4152484 0% /lib/init/rw
udev 1024040 10200 1% /dev
tmpfs 4152484 0 4152484 0% /dev/shm
/dev/sda1 186663 23065153961 14% /boot
/dev/sda6105692028196584 100126524 1% /srv
# /bin/mount
/dev/sda5 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw,noatime)
/dev/sda6 on /srv type ext3 (rw)
# phpsysinfo shows twice the two tmpfs mounts.
# problem in /usr/share/phpsysinfo/includes/os/class.Linux.inc.php:497
#bad code:
if (preg_match(#^ . $result[1] . #, $line2)) {
#patch:
if (preg_match(#^ . $dev . .* . $mpoint . $#, $line2)) {
###
Best regards
497c497
if (preg_match(#^ . $result[1] . #, $line2)) {
---
if (preg_match(#^ . $dev . .* . $mpoint . $#, $line2)) {