Only send LIST if LIST is not empty
Only send LIST if LIST is not empty

Also, add minor safety harness to LIST buffer handling.

Signed-off-by: Joachim Nilsson <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com>

troglobit/uftpd,troglobit/uftpd