*** imap/src/osdep/unix/unix.c.orig	Tue Aug 11 05:28:29 1998
--- imap/src/osdep/unix/unix.c	Thu Sep  3 20:22:41 1998
***************
*** 1010,1016 ****
        case EACCES:		/* protection failure */
  	if (stat (hitch,&sb)) {	/* try again if file exists(?) */
  				/* punt silently if paranoid site */
! 	  if (mail_parameters (NIL,GET_LOCKEACCESERROR,NIL))
  	    mm_log ("Mailbox vulnerable - directory must have 1777 protection",
  		    WARN);
  	  *lock = '\0';		/* give up on lock file */
--- 1010,1020 ----
        case EACCES:		/* protection failure */
  	if (stat (hitch,&sb)) {	/* try again if file exists(?) */
  				/* punt silently if paranoid site */
! 	  if (
! #ifdef __FreeBSD__
! 	      strncmp(lock,"/var/mail/",10) &&  /* /var/mail/... isn't lockable */
! #endif
! 	        mail_parameters (NIL,GET_LOCKEACCESERROR,NIL))
  	    mm_log ("Mailbox vulnerable - directory must have 1777 protection",
  		    WARN);
  	  *lock = '\0';		/* give up on lock file */
