crash-reporter: Fix overzealous crash purging in guest mode.
Previously, if crash_sender was invoked during a guest session all crashes that
could be accessed (i.e. that were stored outside of user directories) were
deleted. This is fixed by re-ordering some of the conditions in send_crashes().
The problem had been introduced by 57f6efa4:
TEST=unit tests passed
TEST=try success on amd64-generic-full
Reviewed-by: Mike Frysinger <firstname.lastname@example.org>
Commit-Queue: Thiemo Nagel <email@example.com>
Tested-by: Thiemo Nagel <firstname.lastname@example.org>
1 file changed