Package: slrn
Version: 0.9.8.1pl1-12
Severity: grave

Hi,

The config and postinst scripts do not check exit status of `head -1' 
command, which fails when _POSIX2_VERSION environment variable is 
set to 200112, causing the slrn installation scripts  to replace
the contents of /etc/mailname file with one '\n' (newline) char:


   vox:~# export LC_ALL=C
   vox:~# ls -la /etc/mailname
   -rw-r--r--  1 root root 15 2005-10-18 20:30 /etc/mailname
[ Note, the file size is 15 ]
   vox:~# env | grep POSIX
   _POSIX2_VERSION=200112
   vox:~# apt-get install --reinstall slrn
[ Let's remove standard apt-get stuff ]
   Preconfiguring packages ...
   head: `-1' option is obsolete; use `-n 1'
   Try `head --help' for more information.
   head: `-1' option is obsolete; use `-n 1'
   Try `head --help' for more information.
   (Reading database ... 307461 files and directories currently installed.)
   Preparing to replace slrn 0.9.8.1pl1-12 (using 
.../slrn_0.9.8.1pl1-12_i386.deb) ...
   Unpacking replacement slrn ...
   Setting up slrn (0.9.8.1pl1-12) ...
   head: `-1' option is obsolete; use `-n 1'
   Try `head --help' for more information.
   head: `-1' option is obsolete; use `-n 1'
   Try `head --help' for more information.
   
   vox:~# ls -la /etc/mailname
   -rw-r--r--  1 root root 1 Oct 18 20:31 /etc/mailname
[ And now the size is 1; the file contains only the '\n' char ]

Severity grave, because this bug causes data loss, and breaks unrelated
software, like postfix (see bug #322602).

Best Regards,
robert

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (100, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages slrn depends on:
ii  debconf [debconf-2.0]         1.4.58     Debian configuration management sy
ii  debianutils                   2.15       Miscellaneous utilities specific t
ii  libc6                         2.3.5-7    GNU C Library: Shared libraries an
ii  libcanlock2                   2b-3       library for creating and verifying
ii  libgcrypt11                   1.2.1-4    LGPL Crypto library - runtime libr
ii  libgnutls12                   1.2.6-1    the GNU TLS library - runtime libr
ii  libslang2                     2.0.4-7    The S-Lang programming library - r
ii  libtasn1-2                    0.2.13-1   Manage ASN.1 structures (runtime)

slrn recommends no packages.

-- debconf information:
* shared/mailname:
* slrn/manual_getdescs:
* slrn/getdescs: manually
* slrn/getdescs_now: false
* shared/news/server:
  slrn/lost_slrnpull:


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

Reply via email to