NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/48507: tests/lib/libc/net/t_hostent kills /etc/resolv.conf

>Number:         48507
>Category:       bin
>Synopsis:       tests/lib/libc/net/t_hostent kills /etc/resolv.conf
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 08 22:50:00 +0000 2014
>Originator:     Martin Husemann
>Release:        NetBSD 6.99.28
The NetBSD Foundation, Inc.
System: NetBSD 6.99.28 NetBSD 6.99.28 (MODULAR) #101: 
Wed Jan 8 13:12:40 CET 2014
Architecture: sparc64
Machine: sparc64

The t_hostent test sets up a temporary DNS and points /etc/resolv.conf to
it. However, it does not require root (which is needed to overwrite the
file), nor does it save and restore the old versions.


As root do:

cd /usr/tests/lib/libc/net
atf-run t_hostent | atf-report
cat /etc/resolv.conf


Home | Main Index | Thread Index | Old Index