Comment 15 for bug 2066995

Revision history for this message
Steve Langasek (vorlon) wrote : Re: apport-gtk keeps prompting to report crashes in a loop

> It seems to boil down to a race condition between the apport postinst
> and the whoopsie postinst, the latter correctly chmoding /var/crash
> to 3777 *if it creates it*.

My read of the postinst is that it correctly chmod's /var/crash regardless of whether it did the creating:

                mkdir -p -m 3777 /var/crash
                chmod g+s /var/crash
                chgrp whoopsie /var/crash

I've confirmed that 'mkdir -p -m' doesn't change the mode of an existing directory. And /var/crash has been on my system since 2019 when this system was installed, so it's not new here?

Running `dpkg-reconfigure whoopsie` (i.e., triggering a rerun of the postinst) is sufficient to fix the directory permissions.

But it must have been something else besides the apport postinst that dropped the g+s bit.