From 4cd5f4c0f19bca04c146e46659bd1ada4b86c77a Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Fri, 25 Nov 2005 19:49:27 +0000 Subject: - By default IMAP-UW will allow users to traverse the filesytem and access any file that they could access locally, including /etc/passwd etc. For providers giving out accounts for mail only this creates an unneccesary risk. Disable this. PR: ports/87508 Submitted by: Stefan Norman Approved by: maintainer timeout (anders; 5 weeks) --- mail/imap-uw/files/patch-src-osdep-unix-env_unix.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 mail/imap-uw/files/patch-src-osdep-unix-env_unix.c (limited to 'mail/imap-uw/files/patch-src-osdep-unix-env_unix.c') diff --git a/mail/imap-uw/files/patch-src-osdep-unix-env_unix.c b/mail/imap-uw/files/patch-src-osdep-unix-env_unix.c new file mode 100644 index 000000000000..61e0b8367438 --- /dev/null +++ b/mail/imap-uw/files/patch-src-osdep-unix-env_unix.c @@ -0,0 +1,11 @@ +--- src/osdep/unix/env_unix.c.orig Mon Sep 13 23:31:19 2004 ++++ src/osdep/unix/env_unix.c Fri Nov 25 20:44:01 2005 +@@ -44,7 +44,7 @@ + static short anonymous = NIL; /* is anonymous */ + static short blackBox = NIL; /* is a black box */ + static short closedBox = NIL; /* is a closed box */ +-static short restrictBox = NIL; /* is a restricted box */ ++static short restrictBox = -1; /* is a restricted box */ + static short has_no_life = NIL; /* is a cretin with no life */ + /* flock() emulator is a no-op */ + static short disableFcntlLock = NIL; -- cgit v1.2.3