Skip to content

Commit

Permalink
Updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeartem committed Nov 4, 2024
1 parent e9e87f5 commit 78b4356
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions build_test_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ cd ftpd

ftpd_dir=`pwd`

curl -O ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.5.tar.gz
tar -xzf proftpd-1.3.5.tar.gz
cd proftpd-1.3.5
curl -O ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.8b.tar.gz
tar -xzf proftpd-1.3.8b.tar.gz
cd proftpd-1.3.8b

# fix slow tls data connection handshake (https://github.com/proftpd/proftpd/pull/48)
perl -pi -e 's/(\Qpr_inet_set_proto_nodelay(conn->pool, conn, 1);\E)/$1\n(void) pr_inet_set_proto_cork(conn->wfd, 0);/' contrib/mod_tls.c
Expand Down Expand Up @@ -88,9 +88,9 @@ VpOorURz8ETlfAA=
-----END CERTIFICATE-----
CERT

curl -O https://download.pureftpd.org/pub/pure-ftpd/releases/obsolete/pure-ftpd-1.0.36.tar.gz
tar -xzf pure-ftpd-1.0.36.tar.gz
cd pure-ftpd-1.0.36
curl -O https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.50.tar.gz
tar -xzf pure-ftpd-1.0.50.tar.gz
cd pure-ftpd-1.0.50

# build normal binary with explicit tls support
CFLAGS=$cflags LDFLAGS=$ldflags ./configure --with-nonroot --with-puredb --with-tls --with-certfile=$ftpd_dir/pure-ftpd.pem
Expand Down Expand Up @@ -121,4 +121,4 @@ fi
chmod 600 users.txt

# generate puredb user db file
pure-ftpd-1.0.36/src/pure-pw mkdb users.pdb -f users.txt
pure-ftpd-1.0.50/src/pure-pw mkdb users.pdb -f users.txt
2 changes: 1 addition & 1 deletion examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"os"
"time"

"github.com/secsy/goftp"
"github.com/AcordoCertoBR/goftp"
)

func Example() {
Expand Down
2 changes: 1 addition & 1 deletion parallel_walk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"path/filepath"
"sync/atomic"

"github.com/secsy/goftp"
"github.com/AcordoCertoBR/goftp"
)

// Just for fun, walk an ftp server in parallel. I make no claim that this is
Expand Down

0 comments on commit 78b4356

Please sign in to comment.