summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/asr/bin/res_mkquery.c
diff options
context:
space:
mode:
authoreric <>2018-12-15 15:16:12 +0000
committereric <>2018-12-15 15:16:12 +0000
commit987422333c6bf4871e97fd14e80c6fe6b937af6c (patch)
tree9e8c744de1e51b27c2b37b1b5757fae46e8f7b01 /src/regress/lib/libc/asr/bin/res_mkquery.c
parentd44c7e0fd6df3e642957216aea5f5fb9814b4056 (diff)
downloadopenbsd-987422333c6bf4871e97fd14e80c6fe6b937af6c.tar.gz
openbsd-987422333c6bf4871e97fd14e80c6fe6b937af6c.tar.bz2
openbsd-987422333c6bf4871e97fd14e80c6fe6b937af6c.zip
add a -R option to set/unset resolver flags.libressl-v2.9.0
use strcasecmp for reading args.
Diffstat (limited to 'src/regress/lib/libc/asr/bin/res_mkquery.c')
-rw-r--r--src/regress/lib/libc/asr/bin/res_mkquery.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/regress/lib/libc/asr/bin/res_mkquery.c b/src/regress/lib/libc/asr/bin/res_mkquery.c
index a52023c5c0..b32f471cdf 100644
--- a/src/regress/lib/libc/asr/bin/res_mkquery.c
+++ b/src/regress/lib/libc/asr/bin/res_mkquery.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: res_mkquery.c,v 1.1.1.1 2012/07/13 17:49:53 eric Exp $ */ 1/* $OpenBSD: res_mkquery.c,v 1.2 2018/12/15 15:16:12 eric Exp $ */
2/* 2/*
3 * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> 3 * Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
4 * 4 *
@@ -59,8 +59,11 @@ main(int argc, char *argv[])
59 uint16_t type = T_A; 59 uint16_t type = T_A;
60 char buf[1024], *host; 60 char buf[1024], *host;
61 61
62 while((ch = getopt(argc, argv, "et:")) != -1) { 62 while((ch = getopt(argc, argv, "R:et:")) != -1) {
63 switch(ch) { 63 switch(ch) {
64 case 'R':
65 parseresopt(optarg);
66 break;
64 case 'e': 67 case 'e':
65 long_err += 1; 68 long_err += 1;
66 break; 69 break;