aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-01-18 18:18:33 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-01-18 18:18:33 +0000
commiteb0093550c866960fdb002e8dec8e49de15614b4 (patch)
tree0660f89eda642263f8b273e590a1bee114985bec
parent2f8470dce3903f7b2d0ac5e55a5963aba3d63a39 (diff)
downloadbusybox-w32-eb0093550c866960fdb002e8dec8e49de15614b4.tar.gz
busybox-w32-eb0093550c866960fdb002e8dec8e49de15614b4.tar.bz2
busybox-w32-eb0093550c866960fdb002e8dec8e49de15614b4.zip
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
-rw-r--r--util-linux/rdate.c2
1 files changed, 1 insertions, 1 deletions
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)
51 int fd; 51 int fd;
52 52
53 bb_lookup_host(&s_in, host); 53 bb_lookup_host(&s_in, host);
54 s_in.sin_port = bb_lookup_port("time", 37); 54 s_in.sin_port = bb_lookup_port("time", "tcp", 37);
55 55
56 /* Add a timeout for dead or non accessable servers */ 56 /* Add a timeout for dead or non accessable servers */
57 alarm(10); 57 alarm(10);