diff mbox

vsftpd: add empty directory /usr/share/empty

Message ID 1358792489-13488-1-git-send-email-sho@relinux.de
State Accepted
Commit ed357ebef6042619095e0e3e81cf1dcd27b19abc
Headers show

Commit Message

Stephan Hoffmann Jan. 21, 2013, 6:21 p.m. UTC
Vsftpd needs an empty directory where it can chroot.
If /usr/share/empty isn't present it refuses to work in the default
configuration.

Signed-off-by: Stephan Hoffmann <sho@relinux.de>
---
 package/vsftpd/vsftpd.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Peter Korsgaard Jan. 21, 2013, 10:58 p.m. UTC | #1
>>>>> "Stephan" == Stephan Hoffmann <sho@relinux.de> writes:

 Stephan> Vsftpd needs an empty directory where it can chroot.
 Stephan> If /usr/share/empty isn't present it refuses to work in the default
 Stephan> configuration.

Committed, thanks.
diff mbox

Patch

diff --git a/package/vsftpd/vsftpd.mk b/package/vsftpd/vsftpd.mk
index c4dd72c..7c55899 100644
--- a/package/vsftpd/vsftpd.mk
+++ b/package/vsftpd/vsftpd.mk
@@ -40,6 +40,7 @@  define VSFTPD_INSTALL_TARGET_CMDS
 	test -f $(TARGET_DIR)/etc/vsftpd.conf || \
 		$(INSTALL) -D -m 644 $(@D)/vsftpd.conf \
 			$(TARGET_DIR)/etc/vsftpd.conf
+	install -d -m 700 $(TARGET_DIR)/usr/share/empty
 endef
 
 define VSFTPD_UNINSTALL_TARGET_CMDS