diff options
author | eric <> | 2018-12-15 15:16:12 +0000 |
---|---|---|
committer | eric <> | 2018-12-15 15:16:12 +0000 |
commit | 987422333c6bf4871e97fd14e80c6fe6b937af6c (patch) | |
tree | 9e8c744de1e51b27c2b37b1b5757fae46e8f7b01 /src/regress/lib/libc/asr/bin/res_query.c | |
parent | d44c7e0fd6df3e642957216aea5f5fb9814b4056 (diff) | |
download | openbsd-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_query.c')
-rw-r--r-- | src/regress/lib/libc/asr/bin/res_query.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/regress/lib/libc/asr/bin/res_query.c b/src/regress/lib/libc/asr/bin/res_query.c index 3565eeebed..ca95a89a7c 100644 --- a/src/regress/lib/libc/asr/bin/res_query.c +++ b/src/regress/lib/libc/asr/bin/res_query.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: res_query.c,v 1.2 2017/03/09 07:56:38 eric Exp $ */ | 1 | /* $OpenBSD: res_query.c,v 1.3 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 | * |
@@ -72,8 +72,11 @@ main(int argc, char *argv[]) | |||
72 | dflag = 0; | 72 | dflag = 0; |
73 | qflag = 0; | 73 | qflag = 0; |
74 | 74 | ||
75 | while((ch = getopt(argc, argv, "deqt:")) != -1) { | 75 | while((ch = getopt(argc, argv, "R:deqt:")) != -1) { |
76 | switch(ch) { | 76 | switch(ch) { |
77 | case 'R': | ||
78 | parseresopt(optarg); | ||
79 | break; | ||
77 | case 'd': | 80 | case 'd': |
78 | dflag = 1; | 81 | dflag = 1; |
79 | break; | 82 | break; |