Package: openbsd-inetd
Version: 0.20050402-6
Severity: normal
Tags: patch

openbsd-inetd startup script assumes a locale with the same alphabet
ordering as C. However, this is not true for several locales, including
Estonian (et_EE). In Estonian, z comes after s and before tuv... so A-Z
matchec only part of the "alpha" character class. So a lone 'telnet'
service in inetd.conf results in "no services enabled".

The solution is to use POSIX character classes:

--- /etc/init.d/openbsd-inetd.old       2008-01-01 19:38:14.000000000 +0200
+++ /etc/init.d/openbsd-inetd   2008-01-01 19:39:37.000000000 +0200
@@ -35,7 +35,7 @@
 } 
 
 checknoservices () {
-    if ! grep -q "^[0-9A-Za-z/]" /etc/inetd.conf; then
+    if ! grep -q "^[[:alnum:]/]" /etc/inetd.conf; then
        log_warning_msg "Not starting internet superserver: no services 
enabled."
        exit 0
     fi

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-rc6-ge697789d (PREEMPT)
Locale: LANG=et_EE.ISO-8859-15, LC_CTYPE=et_EE.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages openbsd-inetd depends on:
ii  libc6                         2.7-5      GNU C Library: Shared libraries
ii  libwrap0                      7.6.dbs-14 Wietse Venema's TCP wrappers libra
ii  lsb-base                      3.1-24     Linux Standard Base 3.1 init scrip
ii  tcpd                          7.6.dbs-14 Wietse Venema's TCP wrapper utilit
ii  update-inetd                  4.27-0.6   inetd.conf updater

openbsd-inetd recommends no packages.

-- debconf-show failed



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to