aboutsummaryrefslogtreecommitdiff
path: root/ftp/proftpd/files
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2011-12-23 19:08:39 +0000
committerXin LI <delphij@FreeBSD.org>2011-12-23 19:08:39 +0000
commit32bd9da6f798749bcee047420992c911c88c2ad6 (patch)
tree8ae056a85f5eb6d1c74c4a0007f5f624dd556a80 /ftp/proftpd/files
parent08244db4c5d65c2243fd52cd4459ae7327c07d35 (diff)
downloadports-32bd9da6f798749bcee047420992c911c88c2ad6.tar.gz
ports-32bd9da6f798749bcee047420992c911c88c2ad6.zip
Notes
Diffstat (limited to 'ftp/proftpd/files')
-rw-r--r--ftp/proftpd/files/patch-src-fsio.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/ftp/proftpd/files/patch-src-fsio.c b/ftp/proftpd/files/patch-src-fsio.c
new file mode 100644
index 000000000000..22e66f6f7ab2
--- /dev/null
+++ b/ftp/proftpd/files/patch-src-fsio.c
@@ -0,0 +1,19 @@
+--- src/fsio.c.orig 2010-04-12 12:00:00.000000000 -0700
++++ src/fsio.c 2011-12-16 15:12:07.799166185 -0800
+@@ -50,6 +50,8 @@
+ # include <acl/libacl.h>
+ #endif
+
++#include <unistd.h>
++
+ typedef struct fsopendir fsopendir_t;
+
+ struct fsopendir {
+@@ -287,6 +289,7 @@
+ static int sys_chroot(pr_fs_t *fs, const char *path) {
+ if (chroot(path) < 0)
+ return -1;
++ __FreeBSD_libc_enter_restricted_mode();
+
+ session.chroot_path = (char *) path;
+ return 0;