aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup-post4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index 6dbf8a2d..4f146058 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -74,8 +74,12 @@ if [ "$PEERDNS" != "no" -o "$RESOLV_MODS" != "no" ]; then
done
# maintain permissions
+ # but set umask in case it doesn't exist!
+ oldumask=`umask`
+ umask 022
cat $tr > /etc/resolv.conf
rm -f $tr
+ umask $oldumask
fi
fi