mirror of
https://github.com/kenzok8/small-package
synced 2025-01-08 13:27:36 +08:00
20 lines
497 B
Diff
20 lines
497 B
Diff
--- a/secutil.c
|
|
+++ b/secutil.c
|
|
@@ -129,16 +129,5 @@ vsf_secutil_change_credentials(const str
|
|
{
|
|
vsf_sysutil_set_no_procs();
|
|
}
|
|
- /* Misconfiguration check: don't ever chroot() to a directory writable by
|
|
- * the current user.
|
|
- */
|
|
- if ((options & VSF_SECUTIL_OPTION_CHROOT) &&
|
|
- !(options & VSF_SECUTIL_OPTION_ALLOW_WRITEABLE_ROOT))
|
|
- {
|
|
- if (vsf_sysutil_write_access("/"))
|
|
- {
|
|
- die("vsftpd: refusing to run with writable root inside chroot()");
|
|
- }
|
|
- }
|
|
}
|
|
|