Skip to content

Commit

Permalink
Don't list server directory name in MLST (without args)
Browse files Browse the repository at this point in the history
Regression introduced in a17c8e3.

Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Dec 18, 2021
1 parent 8da5f1d commit 1519dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ftpcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ static void do_MLST(ctrl_t *ctrl)
if (!path)
goto abort;

if (list_printf(ctrl, &buf[len], sizeof(buf) - len, path, basename(path))) {
if (list_printf(ctrl, &buf[len], sizeof(buf) - len, path, basename(ctrl->file))) {
abort:
do_abort(ctrl);
send_msg(ctrl->sd, "550 No such file or directory.\r\n");
Expand Down

0 comments on commit 1519dc4

Please sign in to comment.