diff options
author | Glenn L McGrath | 2004-01-17 05:03:31 +0000 |
---|---|---|
committer | Glenn L McGrath | 2004-01-17 05:03:31 +0000 |
commit | 036dbaa082f1974246d1d7d21a8e163559642485 (patch) | |
tree | 2488441544ab16f8e08d0955d323019e96ed3d4f /networking/ftpgetput.c | |
parent | b03be7f5677b86acfe2f64b5a57e1f361e257f6c (diff) | |
download | busybox-036dbaa082f1974246d1d7d21a8e163559642485.zip busybox-036dbaa082f1974246d1d7d21a8e163559642485.tar.gz |
Modify bb_lookup_port to allow the protocol to be specified, allowing
/etc/services support for inetd, netcat and tftp.
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r-- | networking/ftpgetput.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index 27b272a..4f6be11 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c @@ -349,7 +349,7 @@ int ftpgetput_main(int argc, char **argv) * and we want to connect to only one IP... */ server->s_in = &s_in; bb_lookup_host(&s_in, argv[optind]); - s_in.sin_port = bb_lookup_port(port, 21); + s_in.sin_port = bb_lookup_port(port, "tcp", 21); if (verbose_flag) { printf("Connecting to %s[%s]:%d\n", argv[optind], inet_ntoa(s_in.sin_addr), ntohs(s_in.sin_port)); |