From 99188797eb41b52a98b019e0842521fbd06251e1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 10 Feb 2015 20:57:47 +0000 Subject: Remove complication in maildir handling to have courier-imap work on ocfs2 --- net-mail/courier-imap/ocfs2-compat.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 net-mail/courier-imap/ocfs2-compat.patch diff --git a/net-mail/courier-imap/ocfs2-compat.patch b/net-mail/courier-imap/ocfs2-compat.patch new file mode 100644 index 0000000..6bfe0a2 --- /dev/null +++ b/net-mail/courier-imap/ocfs2-compat.patch @@ -0,0 +1,19 @@ +--- libs/maildir/maildircreate.c.bak 2015-02-10 20:41:23.000873342 +0000 ++++ libs/maildir/maildircreate.c 2015-02-10 20:41:30.798876266 +0000 +@@ -225,16 +225,5 @@ + + int maildir_movetmpnew(const char *tmpname, const char *newname) + { +- if (link(tmpname, newname) == 0) +- { +- unlink(tmpname); +- return 0; +- } +- +- if (errno != EXDEV) +- return -1; +- +- /* AFS? */ +- + return rename(tmpname, newname); + } -- cgit v1.2.3