Comment 2 for bug 1266288

Revision history for this message
Mark Sapiro (msapiro) wrote : Re: cannot install permissions correctly

In the upstream Debian package, these entries in /var/lib/mailman are actually symlinks as

lrwxrwxrwx 1 root root 20 Jul 17 2012 bin -> /usr/lib/mailman/bin/
lrwxrwxrwx 1 root root 24 Jul 17 2012 cgi-bin -> /usr/lib/cgi-bin/mailman/
lrwxrwxrwx 1 root root 21 Jul 17 2012 cron -> /usr/lib/mailman/cron/
lrwxrwxrwx 1 root root 25 Jul 17 2012 icons -> /usr/share/images/mailman/
lrwxrwxrwx 1 root root 17 Jul 17 2012 locks -> /var/lock/mailman/
lrwxrwxrwx 1 root root 16 Jul 17 2012 logs -> /var/log/mailman/
lrwxrwxrwx 1 root root 21 Jul 17 2012 mail -> /usr/lib/mailman/mail/
lrwxrwxrwx 1 root root 24 Jul 17 2012 Mailman -> /usr/lib/mailman/Mailman/
lrwxrwxrwx 1 root root 24 Jul 17 2012 scripts -> /usr/lib/mailman/scripts/
lrwxrwxrwx 1 root root 12 Jul 17 2012 templates -> /etc/mailman/

check_perms is not designed to handle symlinks. It looks at the ownership and mode of the symlink itself and complains and then, if requested, fixes the target. Thus, it never "fixes" the symlink which it can't do anyway.

Other than the complaint from check_perms, this is not a problem as the ownership and mode of the symlink itself is irrelevant in practice.