diff options
author | Bill Nottingham <notting@redhat.com> | 2000-03-20 16:23:02 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-03-20 16:23:02 +0000 |
commit | 0e0696f7b4b5c0b5ab1d834542e4828ae7735a8f (patch) | |
tree | 2a8419c4fb46e737c4885ab2fecdbd4af0770d1b /sysconfig/network-scripts | |
parent | dae9762ca5510a00fd2217c2e8263b364db85929 (diff) | |
download | initscripts-0e0696f7b4b5c0b5ab1d834542e4828ae7735a8f.tar initscripts-0e0696f7b4b5c0b5ab1d834542e4828ae7735a8f.tar.gz initscripts-0e0696f7b4b5c0b5ab1d834542e4828ae7735a8f.tar.bz2 initscripts-0e0696f7b4b5c0b5ab1d834542e4828ae7735a8f.tar.xz initscripts-0e0696f7b4b5c0b5ab1d834542e4828ae7735a8f.zip |
set umask before writing /etc/resolv.conf
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup-post | 4 |
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 |