Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdbox: Failing after saved mails' UIDs were already assigned caused u…
…nlink()ing garbage Mainly with dsync when it fails, the transaction is still committed and mails are given UIDs. If the transaction commit still fails, it attempts to rollback the saved mails by unlink()ing them, but at that point the path pointed to an already freed memory. This caused unlink() errors with some garbage strings as the path (and hopefully no actually valid paths). The easiest way to reproduce this was to fill up the filesystem with dsync.
- Loading branch information