Package: samba
Version: 2.2.3a-14.2
Severity: grave
Justification: renders package unusable
Tags: woody patch
The postinst script for samba contains this errorneous code:
if [ -d /var/samba/ ]; then
mv /var/samba/* /var/lib/samba/ 2>/dev/null || true
rmdir /var/samba/
fi
Without actually checking that the directory contains the stuff that
should be moved to /var/lib/samba. That directory is commonly used for
the shared data (akin to /var/www). This code breaks such system.
The code should really do:
mkdir -p /var/lib/samba
for F in ntdrivers.tdb ntforms.tdb ntprinters.tdb secrets.tdb share_info.tdb
wins.dat; do
if [ -f /var/samba/$F ]; then
mv /var/samba/$F /var/lib/samba
fi
fi
grep /var/samba /etc/samba/smb.conf || rmdir /var/samba || true
The problem was already there in the previous update and was not fixed.
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux shpek 2.4.26 #2 Thu Apr 29 15:18:53 CEST 2004 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages samba depends on:
ii debconf 1.0.32 Debian configuration management sy
ii libc6 2.2.5-11.8 GNU C Library: Shared libraries an
ii libcupsys2 1.1.14-5woody12 Common UNIX Printing System(tm) -
ii libpam0g 0.72-35 Pluggable Authentication Modules l
ii logrotate 3.5.9-8 Log rotation utility
ii netbase 4.07 Basic TCP/IP networking system
ii samba-common 2.2.3a-14.2 Samba common files used by both th
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]