ftpd: Setting of idle time.

The command to change idle time was broken.
This commit is contained in:
Mats Erik Andersson
2013-09-23 23:32:31 +02:00
parent 3dc3bb447e
commit 5f59063e2b
2 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,12 @@
2013-09-23 Mats Erik Andersson <gnu@gisladisker.se>
ftpd: Setting of idle time.
The command to change idle time was broken.
* ftpd/ftpcmd.y (cmd) <SITE IDLE NUMBER>: The token IDLE
must go before `check_login' to avoid a lookahead syntax
error. Adjust the parameter reference for `check_login'.
2013-09-19 Mats Erik Andersson <gnu@gisladisker.se>
ifconfig: Status and medium reports on BSD.

View File

@@ -497,9 +497,9 @@ cmd
"Current IDLE time limit is %d seconds; max %d",
timeout, maxtimeout);
}
| SITE SP check_login IDLE SP NUMBER CRLF
| SITE SP IDLE check_login SP NUMBER CRLF
{
if ($3)
if ($4)
{
if ($6 < 30 || $6 > maxtimeout)
reply (501,