*** qmail-local.c.orig Tue Mar 14 10:21:56 2000
--- qmail-local.c Tue Mar  7 11:49:35 2000
***************
*** 127,134 ****
--- 127,138 ----
   if (fsync(fd) == -1) goto fail;
   if (close(fd) == -1) goto fail; /* NFS dorks */

+ #ifdef NFS_HACK
   if (link(fntmptph,fnnewtph) == -1) goto fail;
     /* if it was error_exist, almost certainly successful; i hate NFS */
+ #else
+  if (rename(fntmptph,fnnewtph) == -1) goto fail;
+ #endif
   tryunlinktmp(); _exit(0);
   fail: tryunlinktmp(); _exit(1);
*** vpopbull.c.old      Thu Mar  8 16:58:31 2001
--- vpopbull.c  Thu Mar  8 16:57:28 2001
***************
*** 223,229 ****
                fclose(fs);
        } else if ( DeliveryMethod == HARD_LINK_IT ) {
                sprintf(tmpbuf1, "%s/%s", CurDir, EmailFile);
!               if ( link( tmpbuf1, tmpbuf) < 0 ) {
                        perror("link");
                }
        } else if ( DeliveryMethod == SYMBOLIC_LINK_IT ) {
--- 223,230 ----
                fclose(fs);
        } else if ( DeliveryMethod == HARD_LINK_IT ) {
                sprintf(tmpbuf1, "%s/%s", CurDir, EmailFile);
! /* Using hardlink on codafs isn't allowed, so we can use the rename() function instead. */
!               if ( rename( tmpbuf1, tmpbuf) < 0 ) {
                        perror("link");
                }
        } else if ( DeliveryMethod == SYMBOLIC_LINK_IT ) {