Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
3c13af37
Commit
3c13af37
authored
Jul 08, 2014
by
Mark Andrews
Browse files
3892. [bug] Setting '-t aaaa' in .digrc had unintended side
effects. [RT #36452]
parent
607c9360
Changes
5
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
3c13af37
3892. [bug] Setting '-t aaaa' in .digrc had unintended side
effects. [RT #36452]
3891. [bug] Use ${INSTALL_SCRIPT} rather than ${INSTALL_PROGRAM}
to install python programs.
...
...
bin/dig/dig.c
View file @
3c13af37
...
...
@@ -1559,7 +1559,8 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
(
*
lookup
)
->
tcp_mode
=
ISC_TRUE
;
}
else
{
(
*
lookup
)
->
rdtype
=
rdtype
;
(
*
lookup
)
->
rdtypeset
=
ISC_TRUE
;
if
(
!
config_only
)
(
*
lookup
)
->
rdtypeset
=
ISC_TRUE
;
if
(
rdtype
==
dns_rdatatype_axfr
)
{
(
*
lookup
)
->
section_question
=
plusquest
;
(
*
lookup
)
->
comments
=
pluscomm
;
...
...
bin/tests/system/resolver/clean.sh
View file @
3c13af37
...
...
@@ -31,3 +31,4 @@ rm -f ns6/dsset-example.net. ns6/example.net.db.signed.jnl
rm
-f
ns6/to-be-removed.tld.db ns6/to-be-removed.tld.db.jnl
rm
-f
ns7/server.db ns7/server.db.jnl ns7/named.conf
rm
-f
resolve.out
rm
-f
.digrc
bin/tests/system/resolver/prereq.sh
View file @
3c13af37
...
...
@@ -20,7 +20,7 @@ SYSTEMTESTTOP=..
if
$PERL
-e
'use Net::DNS;'
2>/dev/null
then
if
$PERL
-e
'use Net::DNS; die if ($Net::DNS::VERSION
>= 0.76 &&
$Net::DNS::VERSION
<=
0.77);'
2>/dev/null
if
$PERL
-e
'use Net::DNS; die if ($Net::DNS::VERSION
eq "0.76" ||
$Net::DNS::VERSION
eq "
0.77
"
);'
2>/dev/null
then
:
else
...
...
bin/tests/system/resolver/tests.sh
View file @
3c13af37
...
...
@@ -486,5 +486,19 @@ grep "query: noedns.fetchall.tld IN ANY +E" ns5/named.run > /dev/null && ret=1
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
n
=
`
expr
$n
+ 1
`
echo
"I:check that '-t aaaa' in .digrc does not have unexpected side effects (
$n
)"
ret
=
0
echo
"-t aaaa"
>
.digrc
env
HOME
=
`
pwd
`
$DIG
@10.53.0.4
-p
5300
.
>
dig.out.1.
${
n
}
||
ret
=
1
env
HOME
=
`
pwd
`
$DIG
@10.53.0.4
-p
5300
.
A
>
dig.out.2.
${
n
}
||
ret
=
1
env
HOME
=
`
pwd
`
$DIG
@10.53.0.4
-p
5300
-x
127.0.0.1
>
dig.out.3.
${
n
}
||
ret
=
1
grep
';\..*IN.*AAAA$'
dig.out.1.
${
n
}
>
/dev/null
||
ret
=
1
grep
';\..*IN.*A$'
dig.out.2.
${
n
}
>
/dev/null
||
ret
=
1
grep
'extra type option'
dig.out.2.
${
n
}
>
/dev/null
&&
ret
=
1
grep
';1\.0\.0\.127\.in-addr\.arpa\..*IN.*PTR$'
dig.out.3.
${
n
}
>
/dev/null
||
ret
=
1
if
[
$ret
!=
0
]
;
then
echo
"I:failed"
;
fi
status
=
`
expr
$status
+
$ret
`
echo
"I:exit status:
$status
"
exit
$status
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment