From 987422333c6bf4871e97fd14e80c6fe6b937af6c Mon Sep 17 00:00:00 2001 From: eric <> Date: Sat, 15 Dec 2018 15:16:12 +0000 Subject: add a -R option to set/unset resolver flags. use strcasecmp for reading args. --- src/regress/lib/libc/asr/bin/res_query.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/regress/lib/libc/asr/bin/res_query.c') 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 @@ -/* $OpenBSD: res_query.c,v 1.2 2017/03/09 07:56:38 eric Exp $ */ +/* $OpenBSD: res_query.c,v 1.3 2018/12/15 15:16:12 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot * @@ -72,8 +72,11 @@ main(int argc, char *argv[]) dflag = 0; qflag = 0; - while((ch = getopt(argc, argv, "deqt:")) != -1) { + while((ch = getopt(argc, argv, "R:deqt:")) != -1) { switch(ch) { + case 'R': + parseresopt(optarg); + break; case 'd': dflag = 1; break; -- cgit v1.2.3-55-g6feb