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 <email@example.com>
Commit-Queue: Thiemo Nagel <firstname.lastname@example.org>
Tested-by: Thiemo Nagel <email@example.com>
1 file changed