[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#258713: apache2-common: init-script not failsafe



Package: apache2-common
Version: 2.0.50-4
Severity: important

The initscript contains some code that is not failsafe, at least on
my system. It stumbles over 

|for envkey in `env| cut -d'=' -f1`
|do
|        unset $envkey
|done

when I have an TERMCAPS entry in my environment:

|TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\
|        :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
|	:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
|	:do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
|	:le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
|        :li#70:co#204:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
|        :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
|        :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
|        :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
|        :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
|        :se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
|        :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\
|        :vb=\Eg:G0:as=\E(0:ae=\E(B:\
|        :ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\
|        :po=\E[5i:pf=\E[4i:k0=\E[10~:k1=\EOP:k2=\EOQ:k3=\EOR:\
|        :k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
|        :k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:F3=\EO2P:\
|        :F4=\EO2Q:F5=\EO2R:F6=\EO2S:F7=\E[15;2~:F8=\E[17;2~:\
|        :F9=\E[18;2~:FA=\E[19;2~:kb=:K2=\EOE:kB=\E[Z:\
|        :*4=\E[3;5~:*7=\EO5F:#2=\EO5H:#3=\E[2;5~:#4=\EO5D:\
|        :%c=\E[6;5~:%e=\E[5;5~:%i=\EO5C:kh=\E[1~:@1=\E[1~:\
|        :kH=\E[4~:@7=\E[4~:kN=\E[6~:kP=\E[5~:kI=\E[2~:kD=\E[3~:\
|        :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:km:

Thus, using it from a shell is impossible without manipulation the
environment beforehand.

Probably a grep -v "^ " to filter out lines starting with spaces is
approriate to fix that
	

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.26
Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set to en_US.8915-15)

Versions of packages apache2-common depends on:
ii  debconf                     1.4.29       Debian configuration management sy
ii  debianutils                 2.8.3        Miscellaneous utilities specific t
ii  libapr0                     2.0.50-4     The Apache Portable Runtime
ii  libc6                       2.3.2.ds1-13 GNU C Library: Shared libraries an
ii  libdb4.2                    4.2.52-16    Berkeley v4.2 Database Libraries [
ii  libexpat1                   1.95.6-8     XML parsing C library - runtime li
ii  libldap2                    2.1.30-2     OpenLDAP libraries
ii  libmagic1                   4.09-1       File type determination library us
ii  libssl0.9.7                 0.9.7d-3.1   SSL shared libraries
ii  mime-support                3.26-1       MIME files 'mime.types' & 'mailcap
ii  net-tools                   1.60-10      The NET-3 networking toolkit
ii  openssl                     0.9.7d-3.1   Secure Socket Layer (SSL) binary a
ii  ssl-cert                    1.0-8        Simple debconf wrapper for openssl
ii  zlib1g                      1:1.2.1.1-3  compression library - runtime

-- debconf information excluded



Reply to: