Bug#552368: courier-imap: the init script doesn't check if IMAP_UMASK is set before pasing it to umask

2009-10-26 Thread Stefan Hornburg (Racke)

Flavio Stanchina wrote:

Package: courier-imap
Version: 4.4.0-2
Severity: normal

I've just upgraded Courier from a pre-lenny version. Of course I kept
the existing config files during installation, planning to review them
once the installation is complete and the mail server is up again.

One of the new settings is IMAP_UMASK in /etc/courier/imapd; the
/etc/init.d/courier-imap script will use it to call umask $IMAP_UMASK
without checking if it is set, causing this message if it is empty:

  Installing new version of config file /etc/init.d/courier-imap ...
  Starting Courier IMAP server:0022
   imapd.

Notice the 0022 there, the output of an umask command without
parameters.

I'm not sure if this should be considered a bug, as the package is in
some sense not properly configured, but on the other hand the sysadmin
cannot be expected to take care of multiple, extensive additions to the
configuration files of an important service during an upgrade. Unless
changes are made to dpkg's handling of config files, so as to allow the
admin to prepare upgraded configuration files and have them installed
during the upgrade, all the pieces involved should use sensible default
values for missing parameters or ignore them altogether.

I hope you agree ;)


In that case it should use Courier's default, which is 0022.

Thanks for spotting this.

Regards
 Racke



--
LinuXia Systems = http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP = http://www.icdevgroup.org/
Interchange Development Team




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



Bug#552368: courier-imap: the init script doesn't check if IMAP_UMASK is set before pasing it to umask

2009-10-25 Thread Flavio Stanchina
Package: courier-imap
Version: 4.4.0-2
Severity: normal

I've just upgraded Courier from a pre-lenny version. Of course I kept
the existing config files during installation, planning to review them
once the installation is complete and the mail server is up again.

One of the new settings is IMAP_UMASK in /etc/courier/imapd; the
/etc/init.d/courier-imap script will use it to call umask $IMAP_UMASK
without checking if it is set, causing this message if it is empty:

  Installing new version of config file /etc/init.d/courier-imap ...
  Starting Courier IMAP server:0022
   imapd.

Notice the 0022 there, the output of an umask command without
parameters.

I'm not sure if this should be considered a bug, as the package is in
some sense not properly configured, but on the other hand the sysadmin
cannot be expected to take care of multiple, extensive additions to the
configuration files of an important service during an upgrade. Unless
changes are made to dpkg's handling of config files, so as to allow the
admin to prepare upgraded configuration files and have them installed
during the upgrade, all the pieces involved should use sensible default
values for missing parameters or ignore them altogether.

I hope you agree ;)

-- System Information:
Debian Release: squeeze/sid
  APT prefers stable
  APT policy: (500, 'stable'), (400, 'testing'), (300, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30.7-netfinity (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/dash

Versions of packages courier-imap depends on:
ii  courier-base  0.60.0-2   Courier mail server - base system
ii  courier-mta [mail-transport-a 0.60.0-2   Courier mail server - ESMTP daemon
ii  libc6 2.9-25 GNU C Library: Shared libraries
ii  libfam0   2.7.0-13.3 Client library to control the FAM 
ii  libgdbm3  1.8.3-3GNU dbm database routines (runtime

courier-imap recommends no packages.

Versions of packages courier-imap suggests:
ii  courier-doc   0.60.0-2   Courier mail server - additional d
ii  courier-imap-ssl  4.4.0-2Courier mail server - IMAP over SS
ii  mutt [imap-client]1.5.18-6   text-based mailreader supporting M

-- debconf information excluded



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