From eb0093550c866960fdb002e8dec8e49de15614b4 Mon Sep 17 00:00:00 2001 From: andersen Date: Sun, 18 Jan 2004 18:18:33 +0000 Subject: Stephane Billiart writes: bb_lookup_port now takes 3 parameters but rdate has not been modified accordingly and fails to compile in the current CVS version. The modification below fixes the problem. Now, RFC868 allows both UDP and TCP implementations of the time protocol so this may not work if someone defines a udp time service other than 37 but who would do that? git-svn-id: svn://busybox.net/trunk/busybox@8314 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- util-linux/rdate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-linux') diff --git a/util-linux/rdate.c b/util-linux/rdate.c index a317cda55..a73e8eebf 100644 --- a/util-linux/rdate.c +++ b/util-linux/rdate.c @@ -51,7 +51,7 @@ static time_t askremotedate(const char *host) int fd; bb_lookup_host(&s_in, host); - s_in.sin_port = bb_lookup_port("time", 37); + s_in.sin_port = bb_lookup_port("time", "tcp", 37); /* Add a timeout for dead or non accessable servers */ alarm(10); -- cgit v1.2.3-55-g6feb