[git commit nptl] libc/inet: mark other odd /etc/conf/ spot

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Sun Jan 24 05:32:10 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=03c4f490a60c1535ee9a9b87c54b3e3531d89ecf
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl

and wrap it in FALLBACK_TO_CONFIG_RESOLVCONF too. -24b

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 libc/inet/resolv.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index abb84df..4087f8d 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -1539,7 +1539,9 @@ FILE * __open_etc_hosts(void)
 {
 	FILE * fp;
 	if ((fp = fopen("/etc/hosts", "r")) == NULL) {
+#ifdef FALLBACK_TO_CONFIG_RESOLVCONF
 		fp = fopen("/etc/config/hosts", "r");
+#endif
 	}
 	return fp;
 }
-- 
1.6.3.3



More information about the uClibc-cvs mailing list