From 40916ffb4bb4159acf711cbd211fe8ab282534e7 Mon Sep 17 00:00:00 2001 From: bitblt Date: Thu, 2 Jan 1997 19:49:50 +0000 Subject: [PATCH] Fix for the shift-reduce conflict, contributed by dholland@hcs.harvard.edu, who is porting the OpenBSD ftpd to (of all things) Linux. --- libexec/ftpd/ftpcmd.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y index 95f11b64203..3dfc7578066 100644 --- a/libexec/ftpd/ftpcmd.y +++ b/libexec/ftpd/ftpcmd.y @@ -448,9 +448,9 @@ cmd "Current IDLE time limit is %d seconds; max %d", timeout, maxtimeout); } - | SITE SP IDLE check_login SP NUMBER CRLF + | SITE SP check_login IDLE SP NUMBER CRLF { - if ($4) { + if ($3) { if ($6 < 30 || $6 > maxtimeout) { reply(501, "Maximum IDLE time must be between 30 and %d seconds", -- 2.20.1