Репозитории ALT
S: | 4.0.20100725-alt3 |
5.1: | 4.0.20061122-alt2 |
4.1: | 4.0.20061122-alt1 |
4.0: | 4.0.20061122-alt1 |
3.0: | 3.6-alt2 |
Группа :: Сети/Прочее
Пакет: netcat
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: netcat-3.7-20060725-alt-usage.patch
Скачать
Скачать
--- src/usr.bin/nc/netcat.c.orig 2005-01-07 08:43:25 +0300
+++ src/usr.bin/nc/netcat.c 2005-01-07 08:52:05 +0300
@@ -115,4 +115,7 @@
endp = NULL;
sv = NULL;
+ if (argc < 1)
+ usage(1);
+
while ((ch = getopt(argc, argv,
@@ -794,9 +797,9 @@
void
usage(int ret)
{
- fprintf(stderr, "usage: nc [-46DdhklnrStUuvz] [-i interval] [-p source_port]\n");
- fprintf(stderr, "\t [-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_version]\n");
- fprintf(stderr, "\t [-x proxy_address[:port]] [hostname] [port[s]]\n");
+ fprintf(stderr, "usage: netcat [-46DdhklnrStUuvz] [-i interval] [-p source_port]\n");
+ fprintf(stderr, " [-s source_ip_address] [-w timeout] [-X proxy_version]\n");
+ fprintf(stderr, " [-x proxy_address[:port]] [hostname] [port[s]]\n");
if (ret)
exit(1);
}