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
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD thirdstage.duskware.de 6.99.28 NetBSD 6.99.28 (MODULAR) #101: 
Wed Jan 8 13:12:40 CET 2014 
martin%thirdstage.duskware.de@localhost:/usr/src/sys/arch/sparc64/compile/MODULAR
 sparc64
Architecture: sparc64
Machine: sparc64
>Description:

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.

>How-To-Repeat:

As root do:

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

>Fix:
n/a



Home | Main Index | Thread Index | Old Index