openbsd-ports/mail/c-client/patches/patch-src_osdep_unix_env_unix.c
2001-11-19 01:56:13 +00:00

14 lines
648 B
C

$OpenBSD: patch-src_osdep_unix_env_unix.c,v 1.4 2001/11/19 01:56:13 brad Exp $
--- src/osdep/unix/env_unix.c.orig Wed Oct 17 23:35:20 2001
+++ src/osdep/unix/env_unix.c Sat Nov 17 19:06:47 2001
@@ -1001,7 +1001,8 @@ long dotlock_lock (char *file,DOTLOCK *b
}
close (pi[0]); close (pi[1]);
}
- if (lockEaccesError) { /* punt silently if paranoid site */
+ if (strncmp(base->lock,"/var/mail/",10) && lockEaccesError) {
+ /* punt silently if paranoid site */
sprintf (tmp,"Mailbox vulnerable - directory %.80s",base->lock);
if (s = strrchr (tmp,'/')) *s = '\0';
strcat (tmp," must have 1777 protection");