Comment 1 for bug 319477

Revision history for this message
Colin Watson (cjwatson) wrote :

We were actually relatively careful to touch only directories the packaging system knew about, I thought. Here's the relevant code. I can't see where this could recurse into /var/volumes; could you look over the following and see if any of the mentioned directories might contain symlinks into /var/volumes? I suspect that this is specific to your system somehow but I don't yet see how. Thanks in advance.

  NINER_NINER_PATHS=" \
       /boot \
       /etc \
       /usr/lib/locale \
       /var/backups \
       /var/cache/apt \
       /var/cache/debconf \
       /var/cache/fontconfig \
       /var/cache/fonts \
       /var/cache/ldconfig \
       /var/cache/anthy \
       /var/lib/apt \
       /var/lib/dpkg \
       /var/lib/belocs \
       /var/lib/gconf \
       /var/lib/defoma \
       /var/lib/locales \
       /var/log/installer "

  NINER_NINER_SYMLINKS=" \
       /initrd.img \
       /vmlinuz \
       /cdrom \
       /media/cdrom \
       /etc/alternatives \
       /usr/share/fonts \
       /var/lib/anthy \
       /var/lib/defoma "

  find -L $NINER_NINER_PATHS -gid 999 -print0 |
       xargs -0rt chgrp 0
  find $NINER_NINER_SYMLINKS -gid 999 -print0 |
       xargs -0rt chgrp -h 0
  find /media -maxdepth 1 -name "cdrom[0-9]*" -gid 999 -print0 |
       xargs -0rt chgrp 0

  find /lib/modules -maxdepth 2 -name "modules.*" -gid 999 -print0 |
       xargs -0rt chgrp 0