1998-10-10 04:29:27 +00:00
|
|
|
--- imap/src/osdep/unix/unix.c.orig Thu Sep 3 15:07:07 1998
|
|
|
|
+++ imap/src/osdep/unix/unix.c Tue Sep 22 13:36:19 1998
|
|
|
|
@@ -1010,7 +1010,11 @@
|
|
|
|
case EACCES: /* protection failure */
|
|
|
|
if (stat (hitch,&sb)) { /* try again if file exists(?) */
|
1998-07-21 14:11:48 +00:00
|
|
|
/* punt silently if paranoid site */
|
1998-10-10 04:29:27 +00:00
|
|
|
- if (mail_parameters (NIL,GET_LOCKEACCESERROR,NIL))
|
|
|
|
+ if (
|
|
|
|
+#ifdef __FreeBSD__
|
|
|
|
+ strncmp(lock,"/var/mail/",10) && /* /var/mail/... isn't lockable */
|
1998-07-21 14:11:48 +00:00
|
|
|
+#endif
|
1998-10-10 04:29:27 +00:00
|
|
|
+ mail_parameters (NIL,GET_LOCKEACCESERROR,NIL))
|
|
|
|
mm_log ("Mailbox vulnerable - directory must have 1777 protection",
|
|
|
|
WARN);
|
|
|
|
*lock = '\0'; /* give up on lock file */
|