X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Ffolder_addmsg.c;h=1a1c8b10fe3d6e2dda946a51068a7a4b18e65bb9;hb=eabbcb91ae4e824930e9d9c9a206e40f0bdaf61f;hp=a0595e6ecab1093ff6b79f47d9edb349851c6928;hpb=edcaa954bab2d48b54ab3dbcbe3788dc104044dc;p=mmh diff --git a/sbr/folder_addmsg.c b/sbr/folder_addmsg.c index a0595e6..1a1c8b1 100644 --- a/sbr/folder_addmsg.c +++ b/sbr/folder_addmsg.c @@ -166,8 +166,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;