Package: ps-watcher
Version: 1.08-2
Severity: important

The ps-watcher documentation states that the option --ps_prog defaults to 
/bin/ps however
line 342 of /usr/bin/ps-watcher reads "$opts{ps_prog}      = 'no';   # Where is 
ps?" which
sets the ps command to "no" if unspecified. Because the value is not validated 
this will
always cause the program to fail to read the process table but run actions as 
if no process
match was found. Running the program in debug mode produces the following 
output.

Can't exec "no": No such file or directory at /usr/bin/ps-watcher line 584 (#1)
    (W exec) A system(), exec(), or piped open call could not execute the
    named program for the indicated reason.  Typical reasons include: the
    permissions were wrong on the file, the file wasn't found in
    $ENV{PATH}, the executable in question was compiled for another
    architecture, or the #! line in a script points to an interpreter that
    can't be run for similar reasons.  (Or maybe your system doesn't support
    #! at all.)

To be consistent with the documentation the maintainer should change the 
default from "no" to
"/bin/ps". Alternately the documentation should reflect the need for a required 
configuration
directive and the program should fail if it cannot validate the ps command. In 
Debian the 
program can be made operable by simply adding "--ps-prog /bin/ps" to the 
DAEMON_OPTS section
of /etc/default/ps-watcher.



-- System Information:
Debian Release: 6.0.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ps-watcher depends on:
ii  libconfig-inifiles-per 2.52-1            Read .ini-style configuration file
ii  perl                   5.10.1-17squeeze2 Larry Wall's Practical Extraction 

Versions of packages ps-watcher recommends:
ii  perl [libsys-syslog-pe 5.10.1-17squeeze2 Larry Wall's Practical Extraction 

ps-watcher suggests no packages.

-- Configuration Files:
/etc/default/ps-watcher changed [not included]

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to