summaryrefslogtreecommitdiff
path: root/chinese/pine4/files/patch-ac
blob: f7d6cc0fb680857c1203a50126f165b5c870252c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- imap/src/osdep/unix/env_unix.c.orig	Thu Oct 14 12:37:16 1999
+++ imap/src/osdep/unix/env_unix.c	Thu Oct 14 13:21:27 1999
@@ -825,7 +825,11 @@
 	    }
 	    close (pi[0]); close (pi[1]);
 	  }
-	  if (lockEaccesError) {/* punt silently if paranoid site */
+	  if (
+#ifdef	__FreeBSD__
+	      strncmp(base->lock,"/var/mail/",10) &&  /* /var/mail/... isn't lockable */
+#endif
+	      lockEaccesError) {/* punt silently if paranoid site */
 	    sprintf (tmp,"Mailbox vulnerable - directory %.80s",hitch);
 	    if (s = strrchr (tmp,'/')) *s = '\0';
 	    strcat (tmp," must have 1777 protection");