diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2014-05-27 12:05:12 +0200 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2014-06-17 12:59:41 +0200 |
commit | 105fba4593f02fccb85909ea3bc30ed8c426908d (patch) | |
tree | e3c6358a30dd68bd798f8b84571ab8a6f00526f5 /src/lib/dhcp/dhclient | |
parent | 223942f36b1a071bcca39d1e0adb615f9440db1f (diff) | |
download | netctl-105fba4593f02fccb85909ea3bc30ed8c426908d.tar.gz netctl-105fba4593f02fccb85909ea3bc30ed8c426908d.tar.xz |
Escape hatch for the restrictive umask
Some things should not be run with the restrictive umask.
This provides a means to do so: do_readable.
Diffstat (limited to 'src/lib/dhcp/dhclient')
-rw-r--r-- | src/lib/dhcp/dhclient | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/dhcp/dhclient b/src/lib/dhcp/dhclient index 5dc637c..0970aee 100644 --- a/src/lib/dhcp/dhclient +++ b/src/lib/dhcp/dhclient @@ -8,12 +8,10 @@ dhclient_start() { *) return 1;; esac [[ $2 == "noaddr" ]] && options+=" -S" - rm -f "$pidfile" - if ! do_debug dhclient -$1 -q -e "TIMEOUT=${TimeoutDHCP:-30}" -pf "$pidfile" $options "$Interface"; then + if ! do_debug do_readable dhclient -$1 -q -e "TIMEOUT=${TimeoutDHCP:-30}" -pf "$pidfile" $options "$Interface"; then report_error "DHCP IPv$1 lease attempt failed on interface '$Interface'" return 1 fi - chmod 644 "$pidfile" } dhclient_stop() { |