-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
There is a small bug in server.c:173
void ftp_mkd(Command *cmd, State *state)
{
char res[2*BSIZE+32];
...
state->message = res;
...
state->message = "550 Failed to create directory. Check path or permissions.\r\n"; // local address
...
write_state(state);
}
void write_state(State *state)
{
write(state->connection, state->message, strlen(state->message)); // bug location: read previous local address
}Reproduce
USER anonymous
PASS anonymous
MKD <filename> // filename should not be existed.
Metadata
Metadata
Assignees
Labels
No labels
