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

Re: Bug#201023: dosemu: purging doesmu wipes out all user data under /var/lib/dosemu)


On Tue, Jul 15, 2003 at 07:23:43AM +1000, Herbert Xu wrote:

> Roger Leigh <roger@whinlatter.uklinux.net> wrote:
> > 
> >> This is a directory owned by the dosemu package and it will ensure its
> >> removal upon purging.
> > 
> > Why?  Just let dpkg remove the conffiles and, if you really must, do
> > something *non-destructive* like:
> dpkg --purge is defined as an operation which removes all traces of a
> package.  When you do that, you are taking the responsibility to ensure
> that you have no files under any directories solely owned by that package
> that you wish to keep.

Ah, but it's a little more complex than that. How do you define 'owned'?
I'd say the strictest, and really the only sane definition is the output
of dpkg -L + any conffiles.

A broader definition leads to problems. If I install a word processor
which creates a directory called /var/lib/wordproc, to store all
documents created by the users during normal operation, are then all
documents 'owned' by the package, merely because they are in a directory
that's created by the package?

Is the mail in /var/mail 'owned' by the MDA that contains the directory and 
that delivered the mail there? Should all mail be purged when
uninstalling the MDA?

I don't think so. 

Dosemu should only attempt to remove its own files from the directory
and remove the directory if it's empty, but it should not rm -rf a
directory where the user may have created its own files in the normal
course of using dosemu.



E-Advies - Emile van Bergen           emile@e-advies.nl      
tel. +31 (0)70 3906153           http://www.e-advies.nl    

Attachment: pgpRegYmdcTKy.pgp
Description: PGP signature

Reply to: