aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-02-18 03:41:53 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-02-18 03:41:53 +0000
commitcf6c6a28b0631a29085ceeca86c980c0a6e4022d (patch)
treeaa10931caa577ef8f37d690f7f05dd970ab1ce83 /rcfile_y.y
parentc5cfa5bee8bb00850ef37062e68e542b02a87d6b (diff)
downloadfetchmail-cf6c6a28b0631a29085ceeca86c980c0a6e4022d.tar.gz
fetchmail-cf6c6a28b0631a29085ceeca86c980c0a6e4022d.tar.bz2
fetchmail-cf6c6a28b0631a29085ceeca86c980c0a6e4022d.zip
Various minor bug fixes.
svn path=/trunk/; revision=2757
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y11
1 files changed, 8 insertions, 3 deletions
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;}