X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/edcaa954bab2d48b54ab3dbcbe3788dc104044dc..626b510952d3756e15efda6c2e4d0a2c95f6eed3:/sbr/folder_addmsg.c?ds=inline diff --git a/sbr/folder_addmsg.c b/sbr/folder_addmsg.c index a0595e6e..c1e836c1 100644 --- a/sbr/folder_addmsg.c +++ b/sbr/folder_addmsg.c @@ -9,7 +9,6 @@ #include #include -#include /* * Link message into a folder. Return the new number @@ -166,8 +165,9 @@ folder_addmsg (struct msgs **mpp, char *msgfile, int selected, * across devices, then check if there is a message * already in the desired location. If so, then return * error, else just copy the message. + * Cygwin with FAT32 filesystem produces EPERM. */ - if (linkerr == EXDEV) { + if (linkerr == EXDEV || linkerr == EPERM) { if (stat (newmsg, &st1) == 0) { advise (NULL, "message %s:%s already exists", mp->foldpath, newmsg); return -1;