From cf6c6a28b0631a29085ceeca86c980c0a6e4022d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 18 Feb 2000 03:41:53 +0000 Subject: Various minor bug fixes. svn path=/trunk/; revision=2757 --- rcfile_y.y | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'rcfile_y.y') diff --git a/rcfile_y.y b/rcfile_y.y index cda010c2..2e99e62b 100644 --- a/rcfile_y.y +++ b/rcfile_y.y @@ -162,10 +162,15 @@ serv_option : AKA alias_list #endif /* INET6_ENABLE */ } | PORT NUMBER { -#if !INET6_ENABLE +#if INET6_ENABLE + int port = $2; + char buf[10]; + sprintf(buf, "%d", port); + current.server.service = xstrdup(buf); +#else current.server.port = $2; -#endif /* !INET6_ENABLE */ - } +#endif /* INET6_ENABLE */ + } | INTERVAL NUMBER {current.server.interval = $2;} | PREAUTHENTICATE PASSWORD {current.server.preauthenticate = A_PASSWORD;} | PREAUTHENTICATE KERBEROS4 {current.server.preauthenticate = A_KERBEROS_V4;} -- cgit v1.2.3