1) Use "pathstring" instead of "STRING" consistently.
2) Remove unneeded "if not NULL" props from "pathstring", which will never be NULL by the lexer design. Inspired by: OpenBSD MFC after: 1 week
This commit is contained in:
parent
2fb48d6c87
commit
1b9f1a4bd2
@ -475,12 +475,11 @@ cmd
|
||||
if ($2)
|
||||
send_file_list(".");
|
||||
}
|
||||
| NLST check_login SP STRING CRLF
|
||||
| NLST check_login SP pathstring CRLF
|
||||
{
|
||||
if ($2 && $4 != NULL)
|
||||
if ($2)
|
||||
send_file_list($4);
|
||||
if ($4 != NULL)
|
||||
free($4);
|
||||
free($4);
|
||||
}
|
||||
| LIST check_login CRLF
|
||||
{
|
||||
@ -489,10 +488,9 @@ cmd
|
||||
}
|
||||
| LIST check_login SP pathstring CRLF
|
||||
{
|
||||
if ($2 && $4 != NULL)
|
||||
if ($2)
|
||||
retrieve("/bin/ls -lgA %s", $4);
|
||||
if ($4 != NULL)
|
||||
free($4);
|
||||
free($4);
|
||||
}
|
||||
| STAT check_login SP pathname CRLF
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user