From 50e4d7f7e28c7ac97f697e58c9bb001fd602b07d Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 23 Mar 2004 15:52:18 +0000 Subject: [PATCH] be cygwin-compliant: don't use link() --- src/sync.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sync.c b/src/sync.c index 8c9a3e4..6b2c247 100644 --- a/src/sync.c +++ b/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; } }