Package: dpkg
Version: 1.15.5.6
Severity: normal

Let's do a small experiment:

root# dpkg -i dummy_1_all.deb 
Selecting previously deselected package dummy.
(Reading database ... 288646 files and directories currently installed.)
Unpacking dummy (from dummy_1_all.deb) ...
Setting up dummy (1) ...
# No postinst, no preinst, nothing
root# cat /var/lib/dpkg/info/dummy.conffiles 
/etc/dummy/test1
root# ls -l /etc/dummy/test1 
-rw-r--r-- 1 root root 9 Mar 18 01:01 /etc/dummy/test1
root# cat /etc/dummy/test1 
coshoopu
root# echo "I am a bug" > /tmp/a
root# rm /etc/dummy/test1; ln -s /tmp/a /etc/dummy/test1; cat /etc/dummy/test1
I am a bug
root# ls -l /etc/dummy/test1 
lrwxrwxrwx 1 root root 6 Mar 19 22:24 /etc/dummy/test1 -> /tmp/a
root# dpkg -P dummy     
(Reading database ... 288643 files and directories currently installed.)
Removing dummy ...
Purging configuration files for dummy ...
dpkg: warning: while removing dummy, directory '/etc/dummy' not empty so not 
removed.
root# ls -l /etc/dummy/
total 0
lrwxrwxrwx 1 root root 6 Mar 19 22:24 test1 -> /tmp/a
root# ls -l /tmp/a
ls: cannot access /tmp/a: No such file or directory

######################################
The target of the symlink was deleted, not the symlink itself.
This can lead to unexpected user data (I deem this rather unimportant
as it is a cornercase) and leaves garbage behind.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (800, 'unstable'), (700, 'testing'), (500, 'stable'), (50, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg depends on:
ii  coreutils                     8.4-2      GNU core utilities
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  lzma                          4.43-14    Compression method of 7z format in

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt                           0.7.25.3   Advanced front-end for dpkg

-- no debconf information



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

Reply via email to