Bug#498487: Superfluous /etc/tomcat5.5/tomcat5.5 -> /etc/tomcat5.5 link

Thierry Carrez thierry.carrez at ubuntu.com
Wed Sep 10 12:56:08 UTC 2008


Package: tomcat5.5
Severity: minor
Version: 5.5.26-3
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu intrepid

A superfluous /etc/tomcat5.5/tomcat5.5 -> /etc/tomcat5.5 link is created
on install. This is confusing, and makes purging files fail because
/etc/tomcat5.5 is never empty.

Analysis:
tomcat5.5.links creates a link :
/var/lib/tomcat5.5/conf -> /etc/tomcat5.5

but then in tomcat5.5.postinst there is :
ln -sf /etc/tomcat5.5 /var/lib/tomcat5.5/conf

This creates a tomcat5.5 link inside /var/lib/tomcat5.5/conf, which
points to /etc/tomcat5.5. Final result is a /etc/tomcat5.5/tomcat5.5 ->
/etc/tomcat5.5 link.

Obvious solution is to drop the ln -sf in postinst, see attached patch.

-- 
Thierry Carrez
-------------- next part --------------
A non-text attachment was scrubbed...
Name: link.diff
Type: text/x-diff
Size: 442 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20080910/e99de58e/attachment.diff 


More information about the pkg-java-maintainers mailing list