nico's buildroot-20040827-vsftpd.patch.txt
SVN-Revision: 150
This commit is contained in:
@@ -0,0 +1 @@
|
||||
/etc/vsftpd.conf
|
||||
@@ -0,0 +1,8 @@
|
||||
Package: vsftpd
|
||||
Priority: optional
|
||||
Section: net
|
||||
Version: TBDL
|
||||
Architecture: TBDL
|
||||
Maintainer: Nico <nthill@free.fr>
|
||||
Source: http://openwrt.org/cgi-bin/viewcvs.cgi/buildroot/
|
||||
Description: a fast and secure FTP server
|
||||
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
[ -d /var/run/vsftpd ] || mkdir -p /var/run/vsftpd
|
||||
/usr/sbin/vsftpd
|
||||
;;
|
||||
stop)
|
||||
pid=$(pidof vsftpd)
|
||||
x=$$ # exclude our pid since we have the same name
|
||||
pid=$(echo $pid | sed -e "s/$x//")
|
||||
[ -n "$pid" ] && kill -TERM $pid
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 (start|stop)"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
@@ -0,0 +1,17 @@
|
||||
background=YES
|
||||
listen=YES
|
||||
anonymous_enable=NO
|
||||
local_enable=YES
|
||||
write_enable=YES
|
||||
local_umask=022
|
||||
check_shell=NO
|
||||
#dirmessage_enable=YES
|
||||
#ftpd_banner=Welcome to blah FTP service.
|
||||
session_support=NO
|
||||
#syslog_enable=YES
|
||||
#userlist_enable=YES
|
||||
#userlist_deny=NO
|
||||
#userlist_file=/etc/vsftpd.users
|
||||
#xferlog_enable=YES
|
||||
#xferlog_file=/var/log/vsftpd.log
|
||||
#xferlog_std_format=YES
|
||||
@@ -0,0 +1,26 @@
|
||||
diff -ruN vsftpd-1.2.2-old/Makefile vsftpd-1.2.2-new/Makefile
|
||||
--- vsftpd-1.2.2-old/Makefile 2003-09-15 13:41:58.000000000 +0200
|
||||
+++ vsftpd-1.2.2-new/Makefile 2004-05-25 00:25:37.000000000 +0200
|
||||
@@ -5,8 +5,8 @@
|
||||
#CFLAGS = -g
|
||||
CFLAGS = -O2 -Wall -W -Wshadow #-pedantic -Werror -Wconversion
|
||||
|
||||
-LIBS = `./vsf_findlibs.sh`
|
||||
-LINK = -Wl,-s
|
||||
+LIBS = -lcrypt -lnsl
|
||||
+LINK =
|
||||
|
||||
OBJS = main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \
|
||||
tunables.o ftpdataio.o secbuf.o ls.o \
|
||||
diff -ruN vsftpd-1.2.2-old/tunables.c vsftpd-1.2.2-new/tunables.c
|
||||
--- vsftpd-1.2.2-old/tunables.c 2004-04-20 02:25:05.000000000 +0200
|
||||
+++ vsftpd-1.2.2-new/tunables.c 2004-05-25 00:07:19.000000000 +0200
|
||||
@@ -78,7 +78,7 @@
|
||||
unsigned int tunable_max_per_ip = 0;
|
||||
unsigned int tunable_trans_chunk_size = 0;
|
||||
|
||||
-const char* tunable_secure_chroot_dir = "/usr/share/empty";
|
||||
+const char* tunable_secure_chroot_dir = "/var/run/vsftpd";
|
||||
const char* tunable_ftp_username = "ftp";
|
||||
const char* tunable_chown_username = "root";
|
||||
const char* tunable_xferlog_file = "/var/log/xferlog";
|
||||
Reference in New Issue
Block a user