wayfair/pure-ftpd — comment on commit 3a9f75133f6251c1abc6d40dc9816079445d6e29
File:  line 0
By fasmide:

Hmm - ive tried compiling pureftpd with this patch with the following options

```
./configure --with-everything --with-largefile --with-privsep --with-tls --with-rfc2640 --with-virtualchroot --with-mysql --with-virtualdirs
```
Now - pureftpd works just fine without your --with-virtualdirs but with - i always get this error

```
ftp> open 10.0.1.10
Connected to 10.0.1.10.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 14:24. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (10.0.1.10:fas): dan@kirste.dk
331 User dan@kirste.dk OK. Password required
Password:
421 Service not available, remote server has closed connection.
ftp: Login failed
ftp>
```

I'm not sure how to debug this - even with the -d parameter pureftpd outputs nothing about why this happens, my sql query is definded like this (mostly for testing this out - not what i intended to do)
```
MYSQLGetVirtualDirs select concat("/", id), "/home" from User
```
and returns this when executed on the mysql client
```
mysql> select concat("/", id), "/home" from User;
+-----------------+-------+
| concat("/", id) | /home |
+-----------------+-------+
| /1 | /home |
| /2 | /home |
| /3 | /home |
| /4 | /home |
| /5 | /home |
| /6 | /home |
| /7 | /home |
| /9 | /home |
| /10 | /home |
+-----------------+-------+
9 rows in set (0.00 sec)
```
I know the mapping dosent make any sense - but it should work right?