Use printf %s
[openresolv] / libc.in
diff --git a/libc.in b/libc.in
index 9c73f0fffad0ba338b9c55a7591351249288f508..4c797e9067a97673d0a103ac464efb21c68fe5c5 100644 (file)
--- a/libc.in
+++ b/libc.in
@@ -152,7 +152,7 @@ if [ -e "$resolv_conf" ]; then
 fi
 
 # Create our resolv.conf now
-(umask 022; echo "$newconf" >"$resolv_conf")
+(umask 022; printf %s "$newconf" >"$resolv_conf")
 eval $libc_restart
 
 retval=0