Package: sslh Version: 1.7a-2 Severity: important Tags: patch
Hello, I am using sslh configured in standalone, without inetd installed. The initscript /etc/init.d/sslh checks for /etc/inetd.conf file before doing egrep, but apparently even with test -a it tries to egrep the file, so sslh fails to start. I am suggesting a patch using shell condition ] && [ instead of test -a. It fixed the problem for me. How to reproduce the bug: # invoke-rc.d sslh start egrep: /etc/inetd.conf: No such file or directory and sslh is not started. My patch: # diff -u /etc/init.d/sslh{.old,} --- /etc/init.d/sslh.old 2010-11-15 19:45:45.000000000 +0100 +++ /etc/init.d/sslh 2010-11-15 19:35:37.000000000 +0100 @@ -110,7 +110,7 @@ case "$1" in start) # check if sslh is launched via inetd - if [ -f /etc/inetd.conf -a $(egrep -q "^https.*/usr/sbin/sslh" /etc/inetd.conf|wc -l) -ne 0 ] + if [ -f /etc/inetd.conf ] && [ $(egrep -q "^https.*/usr/sbin/sslh" /etc/inetd.conf|wc -l) -ne 0 ] then echo "sslh is started from inetd." exit 1 Sincerely, StalkR -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (800, 'testing'), (700, 'unstable'), (600, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.27.54-levitan.1 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages sslh depends on: ii adduser 3.112 add and remove users and groups ii debconf 1.5.36 Debian configuration management sy ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib ii libwrap0 7.6.q-19 Wietse Venema's TCP wrappers libra ii lsb-base 3.2-23.1 Linux Standard Base 3.2 init scrip ii update-inetd 4.38 inetd configuration file updater Versions of packages sslh recommends: ii apache2 2.2.16-3 Apache HTTP Server metapackage ii apache2-mpm-prefork [httpd] 2.2.16-3 Apache HTTP Server - traditional n ii openssh-server [ssh-server] 1:5.5p1-5+b1 secure shell (SSH) server, for sec Versions of packages sslh suggests: pn openbsd-inetd | inet-superser <none> (no description available) -- Configuration Files: /etc/default/sslh changed [not included] /etc/init.d/sslh changed [not included] -- debconf information: * sslh/inetd_or_standalone: standalone -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org