summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ftp/main.c')
-rw-r--r--usr.bin/ftp/main.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c
index 7448ef9266b..51590c9ed7c 100644
--- a/usr.bin/ftp/main.c
+++ b/usr.bin/ftp/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.60 2006/04/25 05:45:20 tedu Exp $ */
+/* $OpenBSD: main.c,v 1.61 2006/05/16 16:20:42 deraadt Exp $ */
/* $NetBSD: main.c,v 1.24 1997/08/18 10:20:26 lukem Exp $ */
/*
@@ -66,7 +66,7 @@ static const char copyright[] =
#endif /* not lint */
#if !defined(lint) && !defined(SMALL)
-static const char rcsid[] = "$OpenBSD: main.c,v 1.60 2006/04/25 05:45:20 tedu Exp $";
+static const char rcsid[] = "$OpenBSD: main.c,v 1.61 2006/05/16 16:20:42 deraadt Exp $";
#endif /* not lint and not SMALL */
/*
@@ -100,6 +100,9 @@ main(volatile int argc, char *argv[])
ftpport = "ftp";
httpport = "http";
+#ifndef SMALL
+ httpsport = "https";
+#endif
gateport = getenv("FTPSERVERPORT");
if (gateport == NULL || *gateport == '\0')
gateport = "ftpgate";
@@ -730,7 +733,14 @@ usage(void)
"usage: %s [-46AadEegimnptVv] [-P port] [-r seconds] [host [port]]\n"
" %s [-o output] ftp://[user:password@]host[:port]/file[/]\n"
" %s [-o output] http://host[:port]/file\n"
+#ifndef SMALL
+ " %s [-o output] https://host[:port]/file\n"
+#endif
" %s [-o output] host:[/path/]file[/]\n",
+#ifndef SMALL
+ __progname, __progname, __progname, __progname, __progname);
+#else
__progname, __progname, __progname, __progname);
+#endif
exit(1);
}