projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cut-n-paste strikes again
[oweals/busybox.git]
/
util-linux
/
rdate.c
diff --git
a/util-linux/rdate.c
b/util-linux/rdate.c
index 0b5f8e460eecb9483a257dc549917f0eff1e46d4..a73e8eebf523ea7f4415f0d9ecf87b706f040be5 100644
(file)
--- a/
util-linux/rdate.c
+++ b/
util-linux/rdate.c
@@
-50,7
+50,8
@@
static time_t askremotedate(const char *host)
struct sockaddr_in s_in;
int fd;
- bb_lookup_host(&s_in, host, "time");
+ bb_lookup_host(&s_in, host);
+ s_in.sin_port = bb_lookup_port("time", "tcp", 37);
/* Add a timeout for dead or non accessable servers */
alarm(10);