diff -Nru base-files-4.0.1ubuntu5.8.04.2/debian/changelog base-files-4.0.1ubuntu5.8.04.3/debian/changelog --- base-files-4.0.1ubuntu5.8.04.2/debian/changelog 2008-06-12 19:43:19.000000000 +0100 +++ base-files-4.0.1ubuntu5.8.04.3/debian/changelog 2008-10-29 20:54:56.000000000 +0000 @@ -1,3 +1,10 @@ +base-files (4.0.1ubuntu5.8.04.3) hardy-proposed; urgency=low + + * Correct group ownership of files changed by Ubiquity 1.7.5 thru 1.10.9. + LP: #288479. + + -- Scott James Remnant Wed, 29 Oct 2008 20:54:36 +0000 + base-files (4.0.1ubuntu5.8.04.2) hardy-proposed; urgency=low * /etc/lsb-release: leave the DISTRIB_RELEASE version at 8.04, for diff -Nru base-files-4.0.1ubuntu5.8.04.2/debian/postinst base-files-4.0.1ubuntu5.8.04.3/debian/postinst --- base-files-4.0.1ubuntu5.8.04.2/debian/postinst 2008-04-10 01:11:55.000000000 +0100 +++ base-files-4.0.1ubuntu5.8.04.3/debian/postinst 2008-10-29 20:54:23.000000000 +0000 @@ -155,6 +155,49 @@ fi fi +# Ubiquity 1.7.5 thru 1.10.9 failed to restore the group id of +# the process to root after doing work as the Live CD user, creating +# files with that user's group as a result. +if dpkg --compare-versions "$2" le-nl "4.0.4ubuntu2" && + dpkg --compare-versions "$2" ge "4.0.1ubuntu1" +then + 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 -0rp chgrp 0 + find $NINER_NINER_SYMLINKS -gid 999 -print0 | + xargs -0rp chgrp -h 0 + find /media -maxdepth 1 -name "cdrom[0-9]*" -gid 999 -print0 | + xargs -0rp chgrp 0 +fi + if [ -f /var/lib/dpkg/info/base.list ]; then :> /var/lib/dpkg/info/base.list rm -f /var/lib/dpkg/info/base.conffiles