From c3a5c712e2999a5610479fda84a58847bb5543b2 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 23 Jul 2008 14:36:18 -0400 Subject: Allow the -4 option even in an IPv4-only configuration Allow the -4 option even if IPv6 isn't compiled in. --- tftpd/tftpd.8.in | 6 +++--- tftpd/tftpd.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tftpd') diff --git a/tftpd/tftpd.8.in b/tftpd/tftpd.8.in index b4d1ac3..01007ea 100644 --- a/tftpd/tftpd.8.in +++ b/tftpd/tftpd.8.in @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\"----------------------------------------------------------------------- */ -.TH TFTPD 8 "16 February 2006" "tftp-hpa @@VERSION@@" "System Manager's Manual" +.TH TFTPD 8 "23 July 2008" "tftp-hpa @@VERSION@@" "System Manager's Manual" .SH NAME .B tftpd \- IPv4 Trivial File Transfer Protocol server @@ -49,10 +49,10 @@ but can also run standalone. .SH OPTIONS .TP .B \-4 -Connect with IPv4 only, if IPv6 support was compiled in. +Connect with IPv4 only, even if IPv6 support was compiled in. .TP .B \-6 -Connect with IPv6 only, if IPv6 support was compiled in. +Connect with IPv6 only, if compiled in. .TP .B \-l Run the server in standalone (listen) mode, rather than run from diff --git a/tftpd/tftpd.c b/tftpd/tftpd.c index 38f5e7b..8321771 100644 --- a/tftpd/tftpd.c +++ b/tftpd/tftpd.c @@ -298,10 +298,10 @@ int main(int argc, char **argv) while ((c = getopt(argc, argv, "46cspvVlLa:B:u:U:r:t:T:R:m:")) != -1) switch (c) { -#ifdef HAVE_IPV6 case '4': ai_fam = AF_INET; break; +#ifdef HAVE_IPV6 case '6': ai_fam = AF_INET6; break; -- cgit v1.2.1