Skip to contentSkip to conversation

vsftpd: add empty directory /usr/share/empty

PATCH New Stephan Hoffmann 2 participants 2 messages Jan 21, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vsftpd: add empty directory /usr/share/empty

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

---
 package/vsftpd/vsftpd.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
package/vsftpd/vsftpd.mk +1 -0
index c4dd72c..7c55899 100644
@@ -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
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 vsftpd: add empty directory /usr/share/empty

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Stephan" == Stephan Hoffmann <[email protected]> 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.

Signature · 1 line
Bye, Peter Korsgaard