Blame tests/p_vsftpd/vsftpd_anonymous_login.sh

Karanbir Singh 0b5bb2
#!/bin/sh
Karanbir Singh 0b5bb2
# Author: Athmane Madjoudj <athmanem@gmail.com>
Karanbir Singh 0b5bb2
Karanbir Singh 2dd0be
t_Log "Running $0 - vsFTPd anonymous can login test."
Karanbir Singh 2dd0be
40b4c8
if [ "$CONTAINERTEST" -eq "1" ]; then
40b4c8
    t_Log "Running in container -> SKIP"
40b4c8
    exit 0
40b4c8
fi
40b4c8
Christoph Galuschka eb8570
echo -e "user anonymous\npass password\nquit" | nc localhost 21 | grep -q "230 Login successful."
Karanbir Singh 2dd0be
Steve Barnes 464547
t_CheckExitStatus $?