FreeBSD Bugzilla – Attachment 6076 Details for
Bug 14041
"host" blows up with incomplete arguments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
host.c.patch
host.c.patch (text/plain; charset=us-ascii), 1.28 KB, created by
Ruslan Ermilov
on 1999-10-01 14:38:06 UTC
(
hide
)
Description:
host.c.patch
Filename:
MIME Type:
Creator:
Ruslan Ermilov
Created:
1999-10-01 14:38:06 UTC
Size:
1.28 KB
patch
obsolete
>Index: host.c >=================================================================== >RCS file: /usr/FreeBSD-CVS/src/contrib/bind/bin/host/host.c,v >retrieving revision 1.1.1.1 >diff -u -r1.1.1.1 host.c >--- host.c 1998/05/03 04:09:49 1.1.1.1 >+++ host.c 1999/10/01 12:32:39 >@@ -175,10 +175,6 @@ > res_init(); > _res.retrans = 5; > >- if (c < 2) { >- fprintf(stderr, "Usage: host [-w] [-v] [-r] [-d] [-t querytype] [-c class] [-a] host [server]\n -w to wait forever until reply\n -v for verbose output\n -r to disable recursive processing\n -d to turn on debugging output\n -t querytype to look for a specific type of information\n -c class to look for non-Internet data\n -a is equivalent to '-v -t *'\n"); >- exit(1); >- } > while (c > 2 && v[1][0] == '-') { > if (strcmp (v[1], "-w") == 0) { > _res.retry = 1; >@@ -228,6 +224,10 @@ > c--; > } > } >+ if (c < 2) { >+ fprintf(stderr, "Usage: host [-w] [-v] [-r] [-d] [-t querytype] [-c class] [-a] host [server]\n -w to wait forever until reply\n -v for verbose output\n -r to disable recursive processing\n -d to turn on debugging output\n -t querytype to look for a specific type of information\n -c class to look for non-Internet data\n -a is equivalent to '-v -t *'\n"); >+ exit(1); >+ } > if (c > 2) { > s = v[2]; > server_specified++;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 14041
: 6076