Browse Source

be cygwin-compliant: don't use link()

0.9
Oswald Buddenhagen 21 years ago committed by Oswald Buddenhagen
parent
commit
50e4d7f7e2
  1. 5
      src/sync.c

5
src/sync.c

@ -374,14 +374,15 @@ sync_mailbox (mailbox_t * mbox, imap_t * imap, int flags,
/* its ok if this fails, the next time we sync the message
* will get pulled down
*/
if (link (path, newpath))
perror ("link");
if (rename (path, newpath))
perror ("rename");
else
{
/* update the db with the UID mapping for this file */
set_uid (mbox->db, p + 1, cur->uid);
if (cur->uid > mbox->maxuid)
mbox->maxuid = cur->uid;
continue;
}
}

Loading…
Cancel
Save