diff options
| author | Roy Marples <roy@marples.name> | 2009-02-25 14:59:27 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-02-25 14:59:27 +0000 |
| commit | fd77df4b7063b3498890bdf4ed84e8b364b2dec4 (patch) | |
| tree | 6e7ef087f3faab4f1b746cc52384c7c4dde61abc /dhcpcd-run-hooks.in | |
| parent | 7dcb2e0b722483db09552c6951b695efd87c058e (diff) | |
| download | dhcpcd-fd77df4b7063b3498890bdf4ed84e8b364b2dec4.tar.xz | |
Stop enforcing a umask in dhcpcd.
Instead we will ensure that /etc/resolv.conf is 644.
Other config files will retain their existing umask or inherit the current one.
Diffstat (limited to 'dhcpcd-run-hooks.in')
| -rw-r--r-- | dhcpcd-run-hooks.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dhcpcd-run-hooks.in b/dhcpcd-run-hooks.in index f011dcc8..da37b5df 100644 --- a/dhcpcd-run-hooks.in +++ b/dhcpcd-run-hooks.in @@ -105,7 +105,8 @@ change_file() rm -f "$2" return 1 fi - mv -f "$2" "$1" + cat "$2" > "$1" + rm -f "$2" return 0 } |
